Rsync quick check
Rsync quick check is the regular-file selection heuristic that normally treats matching file size and modification time as sufficient to skip transferring file data.
The default mtime comparison uses integer seconds. --modify-window=-1 adds nanoseconds with receiver 3.1.3 or later, but cannot detect altered bytes with preserved timestamps. For equal-size files, --checksum compares contents instead of mtime, adding read work. [1]
In v3.2.7, quick_check_ok tests size mismatch, checksum, size-only, ignore-times and mtime in that order. Combining --size-only with --ignore-times need not transfer equal-size files; --checksum with --ignore-times can still skip identical content. [2]
Earlier transfer rules still apply: --update can skip a newer destination before checksum selection, even with different bytes or size. In 3.2.7 and 3.4.1 its gate compares integer-second source-minus-destination time with modify_window. Window -1 allowed replacement of a destination one second newer; window 1 skipped equal-second changed data. A checksum equality skip can still apply --times metadata. [4] [5]
The timestamp rule is not a whole-tree lock. Directories, symbolic links and other special files are outside its scope; a source/destination object-type change can bypass it. [6]
Interrupted --inplace --update writes can leave a full-length mixture with a newer mtime; retrying with --checksum still skips it. [7]
A dry-run with --checksum alone can expose that mismatch without repairing it. Removing --update from an inspection does not authorize overwriting a newer version. [8]
Transfer verification checks reconstructed files, not the contents of files skipped using metadata. [1] [3]
Relations
- related
- Delta synchronization, Checksum, Backup verification, File modification time, Inode change time, File birth time
Advantages
- Avoids reading every matching-size file solely to decide whether it needs transfer.
Limitations
- Matching metadata is not a content-integrity proof.
- A successful run does not establish a consistent application snapshot or power-loss durability.
Citations
- Rsync v3.2.7 manual: ignore-times, size-only, modify-window and checksum.
- Rsync v3.2.7 generator.c: quick_check_ok.
- Hesela: native rsync file-selection matrix and reproduction bundle.
- Rsync v3.4.1 generator.c: earlier update-rule integer-second comparison.
- Hesela: update-rule and checksum selection observations on two rsync versions.
- Rsync v3.4.1 manual: update-rule scope and object-type changes.
- Hesela: actual rsync interruption/retry observations on two binaries.
- Hesela: dry-run inspection of fresh interrupted rsync files.
Sources & caveats
- The selection study has 42 constructed native runs. The update study has 66 cases per binary on 3.2.7 and 3.4.1, with exact bytes and timestamps checked. These are local regular-file fixtures, not failure rates or interrupted-transfer tests. [3] [5]
- The separate 32-case SIGKILL study and four-interruption/eight-inspection diagnostic probe use local, quiescent files on Linux tmpfs. They do not test power-loss durability, concurrent writers or all recovery policies. [7] [8]