{
  "slug": "rsync-quick-check",
  "term": "Rsync quick check",
  "aliases": [
    "rsync file-selection heuristic"
  ],
  "definition": "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.",
  "note": "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. [manual]\n\nIn 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. [generator]\n\nEarlier 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. [update-source] [update-study]\n\nThe 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. [update-manual]\n\nInterrupted --inplace --update writes can leave a full-length mixture with a newer mtime; retrying with --checksum still skips it. [interruption]\n\nA dry-run with --checksum alone can expose that mismatch without repairing it. Removing --update from an inspection does not authorize overwriting a newer version. [inspection]\n\nTransfer verification checks reconstructed files, not the contents of files skipped using metadata. [manual] [study]",
  "related": [
    "delta-synchronization",
    "checksum",
    "backup-verification",
    "file-modification-time",
    "inode-change-time",
    "file-birth-time"
  ],
  "citations": [
    {
      "id": "manual",
      "title": "Rsync v3.2.7 manual: ignore-times, size-only, modify-window and checksum.",
      "url": "https://github.com/RsyncProject/rsync/blob/v3.2.7/rsync.1.md",
      "accessed": "2026-10-20"
    },
    {
      "id": "generator",
      "title": "Rsync v3.2.7 generator.c: quick_check_ok.",
      "url": "https://github.com/RsyncProject/rsync/blob/v3.2.7/generator.c#L585-L607",
      "accessed": "2026-10-20"
    },
    {
      "id": "study",
      "title": "Hesela: native rsync file-selection matrix and reproduction bundle.",
      "url": "https://hesela.com/analyses/rsync-delta-shifted-blocks/#selection",
      "accessed": "2026-10-20"
    },
    {
      "id": "update-source",
      "title": "Rsync v3.4.1 generator.c: earlier update-rule integer-second comparison.",
      "url": "https://github.com/RsyncProject/rsync/blob/v3.4.1/generator.c#L1625",
      "accessed": "2026-10-21"
    },
    {
      "id": "update-study",
      "title": "Hesela: update-rule and checksum selection observations on two rsync versions.",
      "url": "https://hesela.com/analyses/rsync-delta-shifted-blocks/#update-rules",
      "accessed": "2026-10-21"
    },
    {
      "id": "update-manual",
      "title": "Rsync v3.4.1 manual: update-rule scope and object-type changes.",
      "url": "https://github.com/RsyncProject/rsync/blob/v3.4.1/rsync.1.md",
      "accessed": "2026-10-21"
    },
    {
      "id": "interruption",
      "title": "Hesela: actual rsync interruption/retry observations on two binaries.",
      "url": "https://hesela.com/analyses/rsync-delta-shifted-blocks/#interrupted-retry",
      "accessed": "2026-10-21"
    },
    {
      "id": "inspection",
      "title": "Hesela: dry-run inspection of fresh interrupted rsync files.",
      "url": "https://hesela.com/analyses/rsync-delta-shifted-blocks/#retry-inspection",
      "accessed": "2026-10-21"
    }
  ],
  "status": "shipping",
  "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."
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-21",
  "provenance": [
    "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. [study] [update-study]",
    "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. [interruption] [inspection]"
  ]
}
