{
  "slug": "backup-verification",
  "term": "Backup verification",
  "aliases": [
    "backup integrity verification"
  ],
  "definition": "Backup verification checks stored backup material against specified integrity and completeness rules.",
  "note": "A passing check does not prove application recovery. PostgreSQL 18 pg_verifybackup checks the manifest, files and required WAL, not WAL coverage to every later target. WAL parsing needs matching-version tools and plain backups; tar requires --no-parse-wal. Record --skip-checksums and --ignore. It excludes postgresql.auto.conf, standby.signal and recovery.signal. [verify]\n\nFreshness: four SQLite 3.45.1 copies completed and passed integrity_check with 64 rows. A retained WAL read snapshot copied generation 1 despite generation 2 committing before copying. Full values revealed the difference. [hesela-backup-view]\n\nCompletion: in six native API cases, backup_finish returned OK after no step, partial copying or completion. All reopened destinations passed integrity_check; only SQLITE_DONE controls replaced the old generation in both source journal modes. Retain terminal step status, not cleanup alone. [hesela-completion]\n\nSelection: rsync --append-verify skips equal-length and longer destinations even with --checksum or --ignore-times. Fourteen of 30 designed rsync 3.2.7 outputs differed despite exit 0; checksum-only controls matched all five inputs. [hesela-append] [rsync-append]\n\nDependencies: Git full fsck can use external objects and accept promised absence in partial clones. In Git 2.43.0, HEAD checkout left history unavailable offline; connectivity-only checks omit blob contents. A changed bundle trailer passed verify but failed unpacking. Test offline content and intended history. [hesela-git] [git-fsck] [git-partial]\n\nPermissions: rsync -a preserved bytes and mode 0660 but lost a named-user ACL and broadened the owning-group entry in Linux controls. -aA preserved the ACL. Verify identities and full ACLs separately. [hesela-acl]",
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-22",
  "advantages": [
    {
      "text": "Can identify missing or altered files before recovery is attempted.",
      "citationIds": [
        "verify"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Does not replace a restore test.",
      "citationIds": [
        "verify"
      ]
    },
    {
      "text": "A result is conditional on a trustworthy manifest.",
      "citationIds": [
        "base"
      ]
    },
    {
      "text": "In Git LFS 3.4.1 controls, default fsck passed with an old payload missing or a missing path excluded. Required revision and path coverage must be checked separately.",
      "citationIds": [
        "lfs-fsck",
        "lfs-evidence"
      ]
    },
    {
      "text": "In a constructed Git LFS 3.4.1 size mismatch, a correct 25-byte object passed checks while its pointer declared 26 bytes. Checkout returned 0, left a pointer and removed the cached object. Verify digest, length and materialized bytes on a disposable store.",
      "citationIds": [
        "lfs-fsck-code",
        "lfs-smudge",
        "lfs-evidence"
      ]
    },
    {
      "text": "A clean Git checkout and matching conversion-aware hash can coexist with changed literal bytes and values. Verify the intended transformation policy and independently expected output.",
      "citationIds": [
        "recovery-attributes",
        "recovery-hash"
      ]
    },
    {
      "text": "A verified source tag does not authenticate an independently selected archive member inventory. Preserve required paths and trusted output expectations.",
      "citationIds": [
        "recovery-archive",
        "recovery-evidence"
      ]
    },
    {
      "text": "SFTP resume assumes an already matching prefix. In Ubuntu 9.6p1 / upstream 10.6p2 controls, altered prefixes survived with exit 0, including with -f; injected remote fsync errors also coexisted with exit 0 and exact-byte overwrites.",
      "citationIds": [
        "sftp-manual",
        "sftp-client",
        "sftp-evidence"
      ]
    },
    {
      "text": "After denied WRITE with FSETSTAT allowed, tested 10.6p2 clients left the expected 8,192-byte length with a zero-valued tail; 9.6p1 clients left zero bytes. Both failed. Length alone does not verify transferred content.",
      "citationIds": [
        "sftp-server",
        "sftp-evidence"
      ]
    },
    {
      "text": "A manifest or comparison drawn from the exporting role's restricted view can omit the same required rows as an explicitly RLS-filtered export. Verify intended scope with an authorized, snapshot-aligned inventory.",
      "citationIds": [
        "pg-rls-dump",
        "rls-evidence"
      ]
    }
  ],
  "related": [
    "e2image",
    "backup-manifest",
    "restore-test",
    "incremental-backup",
    "immutability-storage",
    "data-scrubbing",
    "backup",
    "recovery-point-objective",
    "recovery-time-objective",
    "point-in-time-recovery",
    "wal-archiving",
    "rocksdb-backup-engine",
    "sqlite-wal-end-mark",
    "sqlite-integrity-check",
    "sqlite-foreign-key-check",
    "provable-data-possession",
    "proof-of-retrievability",
    "git-alternate-object-database",
    "git-bundle",
    "posix-access-control-list",
    "git-partial-clone",
    "warc-revisit-record",
    "tiff-image-file-directory",
    "sftp"
  ],
  "citations": [
    {
      "id": "verify",
      "title": "PostgreSQL 18: pg_verifybackup, checks and exclusions",
      "url": "https://www.postgresql.org/docs/18/app-pgverifybackup.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "base",
      "title": "PostgreSQL 18: pg_basebackup, manifest checksums and trust",
      "url": "https://www.postgresql.org/docs/18/app-pgbasebackup.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-backup-evidence",
      "title": "Hesela: Backup verification is not a restore test",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-backup-view",
      "title": "Hesela: SQLite backup source-snapshot experiment, observations and limits",
      "url": "https://hesela.dev/research/sqlite-backup-source-snapshot.json",
      "accessed": "2026-10-17"
    },
    {
      "id": "hesela-completion",
      "title": "Hesela: Six-case SQLite native backup completion experiment, observations and limits",
      "url": "https://hesela.dev/research/sqlite-backup-completion.json",
      "accessed": "2026-10-17"
    },
    {
      "id": "hesela-append",
      "title": "Hesela: 30-case rsync append-selection observations and reproduction provenance",
      "url": "https://hesela.dev/research/rsync-append-selection.json",
      "accessed": "2026-10-18"
    },
    {
      "id": "rsync-append",
      "title": "Rsync 3.2.7 manual: append and append-verify",
      "url": "https://github.com/RsyncProject/rsync/blob/v3.2.7/rsync.1.md",
      "accessed": "2026-10-18"
    },
    {
      "id": "hesela-git",
      "title": "Hesela: Git backup dependency and verification controls",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#git-backup-closure",
      "accessed": "2026-10-19"
    },
    {
      "id": "git-fsck",
      "title": "Git v2.43.0: full and connectivity-only object checks",
      "url": "https://github.com/git/git/blob/v2.43.0/Documentation/git-fsck.txt",
      "accessed": "2026-10-19"
    },
    {
      "id": "hesela-acl",
      "title": "Restoring Linux ACLs: identical bytes, different permissions",
      "url": "https://hesela.com/analyses/posix-acl-restore-permissions/",
      "accessed": "2026-10-19"
    },
    {
      "id": "git-partial",
      "title": "Hesela: Git partial-clone offline recovery controls",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#git-partial-closure",
      "accessed": "2026-10-23"
    },
    {
      "id": "lfs-fsck",
      "title": "Git LFS v3.4.1: revision and path scope of fsck",
      "url": "https://github.com/git-lfs/git-lfs/blob/v3.4.1/docs/man/git-lfs-fsck.adoc",
      "accessed": "2026-10-28"
    },
    {
      "id": "lfs-fsck-code",
      "title": "Git LFS v3.4.1: object hash checking",
      "url": "https://github.com/git-lfs/git-lfs/blob/v3.4.1/commands/command_fsck.go",
      "accessed": "2026-10-28"
    },
    {
      "id": "lfs-smudge",
      "title": "Git LFS v3.4.1: size checking during materialization",
      "url": "https://github.com/git-lfs/git-lfs/blob/v3.4.1/lfs/gitfilter_smudge.go",
      "accessed": "2026-10-28"
    },
    {
      "id": "lfs-evidence",
      "title": "Hesela: Git LFS history and pointer-size recovery controls",
      "url": "https://hesela.dev/research/git-lfs-recovery/summary.json",
      "accessed": "2026-10-28"
    },
    {
      "id": "recovery-attributes",
      "title": "Git v2.43.0: checkout/check-in conversion and filter requirements",
      "url": "https://raw.githubusercontent.com/git/git/564d0252ca632e0264ed670534a51d18a689ef5d/Documentation/gitattributes.txt",
      "accessed": "2026-10-28"
    },
    {
      "id": "recovery-hash",
      "title": "Git v2.43.0: path-aware hashing and --no-filters",
      "url": "https://raw.githubusercontent.com/git/git/564d0252ca632e0264ed670534a51d18a689ef5d/Documentation/git-hash-object.txt",
      "accessed": "2026-10-28"
    },
    {
      "id": "recovery-archive",
      "title": "Git v2.43.0: archive attributes and commit labels",
      "url": "https://raw.githubusercontent.com/git/git/564d0252ca632e0264ed670534a51d18a689ef5d/Documentation/git-archive.txt",
      "accessed": "2026-10-28"
    },
    {
      "id": "recovery-evidence",
      "title": "Hesela: three separately scoped Git recovery-identity studies and runnable evidence",
      "url": "https://hesela.dev/research/git-recovery-identity/README.md",
      "accessed": "2026-10-28"
    },
    {
      "id": "sftp-manual",
      "title": "OpenSSH 10.6p2: SFTP resume precondition and synchronization options",
      "url": "https://raw.githubusercontent.com/openssh/openssh-portable/d449e662b6b8b8cb20e852d8084c269af1c5e8f1/sftp.1",
      "accessed": "2026-11-09"
    },
    {
      "id": "sftp-client",
      "title": "OpenSSH 10.6p2: upload status, high-water accounting and fsync return handling",
      "url": "https://raw.githubusercontent.com/openssh/openssh-portable/d449e662b6b8b8cb20e852d8084c269af1c5e8f1/sftp-client.c",
      "accessed": "2026-11-09"
    },
    {
      "id": "sftp-server",
      "title": "OpenSSH 10.6p2: request denial, size updates and synchronization status",
      "url": "https://raw.githubusercontent.com/openssh/openssh-portable/d449e662b6b8b8cb20e852d8084c269af1c5e8f1/sftp-server.c",
      "accessed": "2026-11-09"
    },
    {
      "id": "sftp-protocol",
      "title": "OpenSSH 10.6p2: fsync@openssh.com file-handle extension",
      "url": "https://raw.githubusercontent.com/openssh/openssh-portable/d449e662b6b8b8cb20e852d8084c269af1c5e8f1/PROTOCOL",
      "accessed": "2026-11-09"
    },
    {
      "id": "sftp-evidence",
      "title": "Hesela: SFTP client/server controls, exact payloads and reproducible evidence",
      "url": "https://hesela.dev/research/sftp-acceptance/README.md",
      "accessed": "2026-11-09"
    },
    {
      "id": "pg-rls-dump",
      "title": "PostgreSQL 16: pg_dump and explicit row-security filtering",
      "url": "https://www.postgresql.org/docs/16/app-pgdump.html",
      "accessed": "2026-11-22"
    },
    {
      "id": "rls-evidence",
      "title": "Hesela: PostgreSQL 16.15 row-security backup controls and exact transcripts",
      "url": "https://hesela.dev/research/pg-rls-backup/summary.json",
      "accessed": "2026-11-22"
    }
  ],
  "provenance": [
    "The LFS observations use synthetic local fixtures on Git 2.43.0 / Git LFS 3.4.1, not field rates, current-version guarantees or a new-vulnerability claim. [lfs-evidence]",
    "Git representation evidence: 32 view observations, 24 signed exports and 40 checkouts on one Git 2.43.0 implementation. Deliberate controls, not one combined experiment, field rates or a new vulnerability. [recovery-evidence]",
    "SFTP: 18 constructed cases per client/server pairing, 72 observations and one repeat on one host. Direct pipes without SSH transport; injected fsync/EIO, not media faults, power-loss tests, field rates or independent replication. [sftp-evidence]",
    "RLS evidence uses two fresh private clusters, 15 export and four destination controls per cluster, four synthetic rows and one host/build. No concurrency, ACL-preservation, field-rate or new-defect claim. [rls-evidence]"
  ]
}
