Skip to content

Instantly share code, notes, and snippets.

@brpaz
Forked from fduran/rsync example
Last active August 29, 2015 14:08
Show Gist options
  • Save brpaz/43808bdeed3e4e2edc0c to your computer and use it in GitHub Desktop.
Save brpaz/43808bdeed3e4e2edc0c to your computer and use it in GitHub Desktop.
#rsync
# 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