Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tuefekci
Forked from jrsinclair/rsync-examples.sh
Created February 19, 2016 11:15
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 tuefekci/065e42132280e4af9bf0 to your computer and use it in GitHub Desktop.
Save tuefekci/065e42132280e4af9bf0 to your computer and use it in GitHub Desktop.
Using Rsync over SSH
rsync -rlptuvhz -e ssh username@my-dev-server.dev:/path/to/dir .
# -r Recursive
# -l Copy symlinks as symlinks
# -p Copy permisisons
# -t Copy times
# -u Update. Skip files that are newer on receiving end.
# -v Verbose.
# -h Output numbers in a human-readable format
# -z Use compression when sending data over the network.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment