{
  "schemaVersion": 1,
  "experiment": "rsync-hardlink-backup-boundaries",
  "generatedAt": "2026-10-17T13:20:53.941819+00:00",
  "kind": "measured-software-behavior-on-synthetic-files",
  "environment": {
    "python": "3.12.3",
    "kernel": "6.8.0-146-generic",
    "system": "Linux",
    "filesystem": "ext2/ext3",
    "rsyncVersion": "rsync  version 3.2.7  protocol version 31",
    "rsyncBuild": "rsync  version 3.2.7  protocol version 31\nCopyright (C) 1996-2022 by Andrew Tridgell, Wayne Davison, and others.\nWeb site: https://rsync.samba.org/\nCapabilities:\n    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,\n    socketpairs, symlinks, symtimes, hardlinks, hardlink-specials,\n    hardlink-symlinks, IPv6, atimes, batchfiles, inplace, append, ACLs,\n    xattrs, optional secluded-args, iconv, prealloc, stop-at, no crtimes\nOptimizations:\n    SIMD-roll, no asm-roll, openssl-crypto, no asm-MD5\nChecksum list:\n    xxh128 xxh3 xxh64 (xxhash) md5 md4 sha1 none\nCompress list:\n    zstd lz4 zlibx zlib none\nDaemon auth list:\n    sha512 sha256 sha1 md5 md4\n\nrsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you\nare welcome to redistribute it under certain conditions.  See the GNU\nGeneral Public Licence for details.\n",
    "rsyncBinarySha256": "6b4fb867cb49d0332b72b234656311c807ab68b0537905fda7a3e7481a139f16",
    "unprivileged": true
  },
  "scriptSha256": "612ec2dba201f7949db78fbb4e00528d861cf8c6098b28260bc5ecfec2467073",
  "method": {
    "cases": 8,
    "filesPerCase": 1,
    "payloadBytes": 4109,
    "oldPayloadSha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
    "newPayloadSha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
    "mtimeNs": 1700000000000000000,
    "localOnly": true,
    "sourceQuiescentDuringEachRun": true,
    "checksum": "rsync default negotiation; SHA-256 is a separate evidence digest",
    "oracle": "complete byte equality, permission bits, and device/inode identity"
  },
  "limitations": [
    "Eight constructed schedules on one local filesystem, not failure-rate samples.",
    "No network, concurrent source writes, crash, power cut, ACL or xattr testing.",
    "Reopened reads can be served from cache; no durability or cold-media verification.",
    "Recorded software version identifies this observation, not a patch recommendation.",
    "Fresh destination isolates this permission change, not every metadata field or failure domain."
  ],
  "sources": [
    {
      "url": "https://download.samba.org/pub/rsync/rsync.1.html",
      "sections": [
        "DESCRIPTION",
        "--checksum",
        "--inplace",
        "--link-dest",
        "--ignore-existing"
      ],
      "accessed": "2026-10-17"
    },
    {
      "url": "https://github.com/RsyncProject/rsync/blob/v3.2.7/generator.c",
      "sections": [
        "quick_check_ok",
        "unchanged_attrs",
        "try_dests_reg",
        "recv_generator"
      ],
      "accessed": "2026-10-17"
    },
    {
      "url": "https://man7.org/linux/man-pages/man2/link.2.html",
      "sections": [
        "DESCRIPTION"
      ],
      "accessed": "2026-10-17"
    }
  ],
  "cases": [
    {
      "case": "quick-check",
      "schedule": "Changed bytes, same size and mtime",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
        "payload": "new",
        "mode": "0600",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndDestinationShareInode": true
      },
      "olderBytesPreserved": true,
      "olderModePreserved": true,
      "destinationBytesMatchSource": false,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "checksum-check",
      "schedule": "Same change, with --checksum",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
        "payload": "new",
        "mode": "0600",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--checksum",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": ">fc........ file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 1
        },
        "destination": {
          "bytes": 4109,
          "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
          "payload": "new",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 1
        },
        "olderAndDestinationShareInode": false
      },
      "olderBytesPreserved": true,
      "olderModePreserved": true,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "replace-content",
      "schedule": "Changed bytes and mtime, default replacement",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
        "payload": "new",
        "mode": "0600",
        "mtimeNs": 1700000010000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": ">f..t...... file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 1
        },
        "destination": {
          "bytes": 4109,
          "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
          "payload": "new",
          "mode": "0600",
          "mtimeNs": 1700000010000000000,
          "linkCount": 1
        },
        "olderAndDestinationShareInode": false
      },
      "olderBytesPreserved": true,
      "olderModePreserved": true,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "inplace-content",
      "schedule": "Same visible change, with --inplace",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
        "payload": "new",
        "mode": "0600",
        "mtimeNs": 1700000010000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--inplace",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": ">f..t...... file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
          "payload": "new",
          "mode": "0600",
          "mtimeNs": 1700000010000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "47c870f6da501f9256fd340a42d0e59f50ec7131f25d8d8b37ca4e3a49e18a17",
          "payload": "new",
          "mode": "0600",
          "mtimeNs": 1700000010000000000,
          "linkCount": 2
        },
        "olderAndDestinationShareInode": true
      },
      "olderBytesPreserved": false,
      "olderModePreserved": true,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "metadata-rerun",
      "schedule": "Only permissions change, reuse destination",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
        "payload": "old",
        "mode": "0644",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": ".f...p..... file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0644",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0644",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndDestinationShareInode": true
      },
      "olderBytesPreserved": true,
      "olderModePreserved": false,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "checksum-metadata",
      "schedule": "Only permissions change, with --checksum",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
        "payload": "old",
        "mode": "0644",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--checksum",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": ".f...p..... file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0644",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0644",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndDestinationShareInode": true
      },
      "olderBytesPreserved": true,
      "olderModePreserved": false,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "fresh-metadata",
      "schedule": "Only permissions change, empty destination",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
        "payload": "old",
        "mode": "0644",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--link-dest=../older",
          "source/",
          "fresh/"
        ],
        "exitCode": 0,
        "stdout": "cf...p..... file\n",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0644",
          "mtimeNs": 1700000000000000000,
          "linkCount": 1
        },
        "olderAndDestinationShareInode": false
      },
      "olderBytesPreserved": true,
      "olderModePreserved": true,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": true,
      "completePayloadOraclePassed": true
    },
    {
      "case": "ignore-existing",
      "schedule": "Only permissions change, skip existing files",
      "setup": [
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "source/",
            "older/"
          ],
          "exitCode": 0,
          "stdout": ">f+++++++++ file\n",
          "stderr": ""
        },
        {
          "argv": [
            "rsync",
            "-a",
            "--itemize-changes",
            "--link-dest=../older",
            "source/",
            "current/"
          ],
          "exitCode": 0,
          "stdout": "",
          "stderr": ""
        }
      ],
      "before": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "current": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndCurrentShareInode": true
      },
      "sourceBeforeTransfer": {
        "bytes": 4109,
        "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
        "payload": "old",
        "mode": "0644",
        "mtimeNs": 1700000000000000000,
        "linkCount": 1
      },
      "operation": {
        "argv": [
          "rsync",
          "-a",
          "--itemize-changes",
          "--ignore-existing",
          "--link-dest=../older",
          "source/",
          "current/"
        ],
        "exitCode": 0,
        "stdout": "",
        "stderr": ""
      },
      "after": {
        "older": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "destination": {
          "bytes": 4109,
          "sha256": "3105f39c0c67ff119b868819fb91152431ccffcdf5c99e363e75408942d88ca9",
          "payload": "old",
          "mode": "0600",
          "mtimeNs": 1700000000000000000,
          "linkCount": 2
        },
        "olderAndDestinationShareInode": true
      },
      "olderBytesPreserved": true,
      "olderModePreserved": true,
      "destinationBytesMatchSource": true,
      "destinationModeMatchesSource": false,
      "completePayloadOraclePassed": true
    }
  ]
}
