Skip to content

Instantly share code, notes, and snippets.

@stevemcquaid
Created February 11, 2017 03:51
Show Gist options
  • Save stevemcquaid/3a9ca7b0979d2d5acbd6d33c0d38d166 to your computer and use it in GitHub Desktop.
Save stevemcquaid/3a9ca7b0979d2d5acbd6d33c0d38d166 to your computer and use it in GitHub Desktop.
rsync --archive --compress --size-only --log-file=rsync-log.txt --stats /path/to/destination path/to/paste/location
--archive == -rlptgoD
-r recursive
-l preserve links
-p preserve permissions (also updates permission on not transferred files)
-t preserve time (also updates time on not transferred files)
-g preserve group
-o preserve owner
-D preserve device and special files
-X preserve xattrs
--size-only don't use time to decide if file needs update
-i, --itemize-changes output a change-summary for all updates
-u don't update files that are newer on the receiver
-n --dry-run just simulate
@stevemcquaid
Copy link
Author

rsync -rt--compress --log-file=rsync-log.txt -i --stats smcquaid@192.168.X.X:~/Downloads ~/rsync/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment