rsync -rvzP --delete {{src}} {{destination}}
- -r recursive
- -v verbose
- -z compress files
- -P show progress
- --delete remove files from destination if not present in source
You must add one of the following parameters;
Preserve and compare with file modification time
Archive mode
Preserve and compare with file permissions, ownership, symbolic links
May be overkill in many cases, and can cause permission problems
Compare using filesize
Compare using checksum
Super slow!
Reduce accuracy of compared modified times
Useful for daylight saving problems;
--modify-window=60