Rsync ignore time comparison

What are the flags to make sure rsync ignore modification time and use checksum only?


From the rsync(1) man page:

    -c, --checksum              skip based on checksum, not mod-time & size
       ...
    -I, --ignore-times          don’t skip files that match size and time

As always, -n will help you make sure you have the options you need.


After some time of trying, I found this one is more useful.

Sync two folders ignoring timestamp changes:

rsync --dry-run -icrvh from_path to_path

Remove --dry-run once you like what will be synched.

  • -i is for showing information of changes. See explanation here
  • -c perform checksum check
  • -r recursive
  • -v verbose
  • -h human readable numbers. eg: 1K instead of 1,024