Skip to content

Instantly share code, notes, and snippets.

@neomatrix369
Created June 14, 2015 13:16
Show Gist options
  • Save neomatrix369/aad1b372109b423e3290 to your computer and use it in GitHub Desktop.
Save neomatrix369/aad1b372109b423e3290 to your computer and use it in GitHub Desktop.
Handy rysnc examples
rsync -vpcrazh --progress [source folder] [destination folder]
or
rsync --verbose --perms --checksum --recursive --archive --compress --human-readable --progress [source folder] [destination folder]
-v, --verbose increase verbosity
-p, --perms preserve permissions
-c, --checksum skip based on checksum, not mod-time & size
-r, --recursive recurse into directories
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
--no-OPTION turn off an implied OPTION (e.g. --no-D)
-z, --compress compress file data during the transfer
--compress-level=NUM explicitly set compression level
--skip-compress=LIST skip compressing files with a suffix in LIST
-h, --human-readable output numbers in a human-readable format
--progress show progress during transfer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment