Created
April 29, 2014 13:42
-
-
Save fduran/11400761 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
# www.fduran.com | |
# sync (copy) local to remote server directory | |
# take out dry-run after test | |
rsync --dry-run -azvrh -e 'ssh -p 2022' --exclude 'donotcopy' /var/www/ [email protected]:/var/www/ | |
# options: | |
a: archive, preserve metadata | |
z: compression | |
v: verbose | |
r: recursive | |
h: human | |
--progress | |
--delete : delete files at destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment