rsync -aHxvK --delete --stats /path/to/source/dir/ /path/to/destination/dir
- -a, –archive
Equivelent of -rlptgoD (no -H,-A,-X) - -H, –hard-links
Preserve hard links - -x, –xattrs
Preserve extended attributes - -v, –verbose
- -K, –keep-dirlinks
Treat symlinked dir on receiver as dir - –delete
Wil delete files from the destintion that no longer exist in the source. - –stats
Provides some file-transfer stats - –log-file=/home/user/rsync.log
Save a log file to /home/user/rsync.log