Created
February 1, 2017 12:23
-
-
Save anonymous/b688b8abddc61d88757135b2175d1690 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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