Skip to content

Instantly share code, notes, and snippets.

@dbcesar
Last active January 19, 2017 15:39
Show Gist options
  • Save dbcesar/38be7d34580409ffa98708a7b3a81c87 to your computer and use it in GitHub Desktop.
Save dbcesar/38be7d34580409ffa98708a7b3a81c87 to your computer and use it in GitHub Desktop.
Typical rsync command
rsync -avzPn --delete 20161202-1* diego@diego-bir:/home/diego/logs_catarina
Usefull
-n, --dry-run perform a trial run with no changes made
-v, --verbose increase verbosity
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-z, --compress compress file data during the transfer
-P same as --partial --progress
--partial keep partially transferred files
--progress show progress during transfer
--delete delete files from the destination. By default rsync does not delete files from the destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment