Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b688b8abddc61d88757135b2175d1690 to your computer and use it in GitHub Desktop.
Save anonymous/b688b8abddc61d88757135b2175d1690 to your computer and use it in GitHub Desktop.
#!/bin/bash
agora=$(date +"%m-%d-%Y_%H:%M:%S")
origem="diretório de origem"
destino="diretório de destino"
echo “” > rsync-$agora.log
echo executando envio de $origem para $destino >> rsync-$agora.log
rsync -azrvPh --delete --log-file=rsync-$agora.log $origem $destino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment