{
  "slug": "backup-manifest",
  "term": "Backup manifest",
  "aliases": [],
  "definition": "A backup manifest is a machine-readable inventory of expected backup contents and associated verification metadata.",
  "note": "PostgreSQL uses UTF-8 JSON with file paths, sizes and optional checksums; modification times are informational. Required WAL ranges are also recorded. Other formats need not use this schema.\n\nA TAR pathname can name multiple stored entries. Retain an occurrence or duplicate-name policy and the intended payload digest; a name-keyed inventory can collapse entries. [hesela-tar-members]\n\nFor PostgreSQL WAL ranges, Timeline identifies the branch, Start-LSN the replay start and End-LSN the earliest usable end. A standby following an upstream promotion during backup can produce multiple ranges on different timelines. Preserve each range. [ranges]\n\nBagIt 1.0 requires completeness and validation of every declared checksum. Hashing surviving files misses omissions. Keep recovery expectations independently: manifests do not authenticate data against active replacement. [bagit] [hesela-acceptance]\n\nRecord captured paths, required hard-link groups (including singletons), and boundary-crossing link policy. Equal hashes and link counts do not establish equal groups or exclude external aliases. Compare device/inode equivalence classes using quiescent enumeration. This is not a PostgreSQL manifest-schema change and not a new BagIt requirement. [hesela-rsync-topology] [hesela-rsync-selection]\n\nAvro recovery also needs the intended reader schema. [avro-spec] [hesela-avro]\n\nRetain original names losslessly and validate the expected destination inventory independently of hashes. Equal-content names can collapse under a transformation while payload checks pass. This is not a PostgreSQL format change. [hesela-filenames]",
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-21",
  "advantages": [
    {
      "text": "Provides explicit expected file contents for automated checks.",
      "citationIds": [
        "manifest",
        "files"
      ]
    }
  ],
  "limitations": [
    {
      "text": "OCFL object validation can accept an intact historical copy or a same-ID, same-head alternative. Bind the intended target independently and still validate its payload; checking only inventory.json omitted payload verification in the pinned ocfl-py 2.1.0 controls.",
      "citationIds": [
        "ocfl-spec",
        "ocfl-code",
        "hesela-ocfl"
      ]
    },
    {
      "text": "Exact inventory-byte binding rejects harmless JSON reformatting too. Choose an explicit equivalence policy; a stale or replaced expected receipt can select the wrong recovery state.",
      "citationIds": [
        "ocfl-spec",
        "hesela-ocfl"
      ]
    },
    {
      "text": "A consolidated OCFL inventory reduces metadata lookups, not the bytes that must be read for payload verification. The 2019 design paper's operation counts concern indexing and history reconstruction, not a measured full-validation or restore speedup.",
      "citationIds": [
        "ocfl-paper",
        "ocfl-spec"
      ]
    },
    {
      "text": "Optional per-file checksums must not be assumed present.",
      "citationIds": [
        "files"
      ]
    },
    {
      "text": "A hash match cannot authenticate a manifest that an attacker could also replace.",
      "citationIds": [
        "base"
      ]
    },
    {
      "text": "Valid concatenated XZ streams can be reordered while preserving stream count, total decoded size and successful checks; bind the intended complete output independently of the surviving archive.",
      "citationIds": [
        "xz-format-source",
        "hesela-xz"
      ]
    },
    {
      "text": "An Avro parsing fingerprint alone does not establish identical restored application values. Preserving reader policy is a recovery inference, not a PostgreSQL manifest-format requirement.",
      "citationIds": [
        "avro-spec",
        "hesela-avro"
      ]
    },
    {
      "text": "In a pinned bagit-python 1.9.0 control, full validation accepted missing SHA-512 coverage; SHA-256 still detected changed bytes. A successful command did not establish BagIt 1.0 per-manifest coverage.",
      "citationIds": [
        "bagit",
        "bagit-code",
        "hesela-bagit"
      ]
    },
    {
      "text": "Specify whether a digest covers a raw object, materialized file or exported archive. A conversion-aware Git hash is not necessarily a digest of the literal file bytes. Versioned .gitattributes alone is insufficient: $GIT_DIR/info/attributes has higher precedence, filter commands are configured separately, and a configured process filter takes precedence over single-blob clean/smudge commands.",
      "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": "For imports into a current service, distinguish an intended historical restore from preservation of later deletions. Record the target epoch, archive lineage, timestamp-preservation policy and independently retained deletion evidence alongside byte identity. The same old value can be correct for a historical target and wrong for the current deletion objective. This is a recovery-policy inference from a constructed model, not a Cassandra run or a change to PostgreSQL or BagIt manifest requirements.",
      "citationIds": [
        "restore-backups",
        "restore-evidence"
      ]
    }
  ],
  "related": [
    "backup-verification",
    "incremental-backup",
    "restore-test",
    "immutability-storage",
    "full-backup",
    "synthetic-full-backup",
    "archive-member",
    "postgresql-timeline",
    "timeline-history-file",
    "hard-link",
    "filename-collision",
    "backup-catalog",
    "bagit",
    "oxford-common-file-layout"
  ],
  "citations": [
    {
      "id": "ocfl-spec",
      "title": "OCFL 1.1 specification: object-at-rest consistency and external digests",
      "url": "https://ocfl.io/1.1/spec/",
      "accessed": "2026-11-02"
    },
    {
      "id": "ocfl-notes",
      "title": "OCFL 1.1 implementation notes: version immutability and update recovery",
      "url": "https://ocfl.io/1.1/implementation-notes/",
      "accessed": "2026-11-02"
    },
    {
      "id": "ocfl-code",
      "title": "ocfl-py 2.1.0: pinned file-versus-object validation dispatch",
      "url": "https://github.com/zimeon/ocfl-py/blob/a480226d54cf8d03d71ab8c56eb69ae8a78e231d/ocfl-validate.py",
      "accessed": "2026-11-02"
    },
    {
      "id": "hesela-ocfl",
      "title": "Hesela: OCFL controlled results, fixtures, method and replay package",
      "url": "https://hesela.dev/research/ocfl-recovery-boundary/README.md",
      "accessed": "2026-11-02"
    },
    {
      "id": "manifest",
      "title": "PostgreSQL 18: Backup Manifest Format",
      "url": "https://www.postgresql.org/docs/18/backup-manifest-format.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "files",
      "title": "PostgreSQL 18: Backup Manifest File Object",
      "url": "https://www.postgresql.org/docs/18/backup-manifest-files.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "ranges",
      "title": "PostgreSQL 18: Backup Manifest WAL Range Object",
      "url": "https://www.postgresql.org/docs/18/backup-manifest-wal-ranges.html",
      "accessed": "2026-10-21"
    },
    {
      "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-tar-members",
      "title": "Hesela: TAR member selection after successful decompression",
      "url": "https://hesela.com/analyses/compressed-archives-dictionary-dependencies/#tar-members",
      "accessed": "2026-10-18"
    },
    {
      "id": "bagit",
      "title": "RFC 8493: BagIt 1.0, sections 3 and 5.4",
      "url": "https://www.rfc-editor.org/rfc/rfc8493.html",
      "accessed": "2026-10-21"
    },
    {
      "id": "hesela-acceptance",
      "title": "Hesela: expected-set payload acceptance for TAR recovery",
      "url": "https://hesela.com/analyses/compressed-archives-dictionary-dependencies/#payload-acceptance",
      "accessed": "2026-10-21"
    },
    {
      "id": "hesela-rsync-topology",
      "title": "Hesela: restoring names is not restoring file relationships",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#rsync-topology",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-rsync-selection",
      "title": "Hesela: selected rsync restores, retained observations and reproduction",
      "url": "https://hesela.dev/research/rsync-topology-20261023/selection/README.md",
      "accessed": "2026-10-23"
    },
    {
      "id": "xz-format-source",
      "title": "XZ format 1.1.0: stream structure, Block Check and Index",
      "url": "https://raw.githubusercontent.com/tukaani-project/xz/49053c0a649f4c8bd2b8d97ce915f401fbc0f3d9/doc/xz-file-format.txt",
      "accessed": "2026-10-24"
    },
    {
      "id": "hesela-xz",
      "title": "Hesela: XZ stored checks, executed checks and intended stream sequence",
      "url": "https://hesela.com/analyses/compressed-archives-dictionary-dependencies/#xz-verification",
      "accessed": "2026-10-24"
    },
    {
      "id": "avro-spec",
      "title": "Apache Avro: pinned specification, schema resolution, canonical form and encoding formats",
      "url": "https://raw.githubusercontent.com/apache/avro/8fa2067f70e3012cb3fd9a8839cd97e8c7cc1772/doc/content/en/docs/1.12.0/Specification/_index.md",
      "accessed": "2026-10-25"
    },
    {
      "id": "hesela-avro",
      "title": "Hesela: Avro reader-policy controls and complete reproducible evidence",
      "url": "https://hesela.dev/research/avro-schema-identity/README.md",
      "accessed": "2026-10-25"
    },
    {
      "id": "bagit-code",
      "title": "Library of Congress: pinned bagit-python 1.9.0 validation implementation",
      "url": "https://raw.githubusercontent.com/LibraryOfCongress/bagit-python/861ddacb339d5b92659f0187a402f501d841abbe/bagit.py",
      "accessed": "2026-10-28"
    },
    {
      "id": "bagit-readme",
      "title": "Library of Congress: pinned bagit-python validation modes and CC0 notice",
      "url": "https://raw.githubusercontent.com/LibraryOfCongress/bagit-python/861ddacb339d5b92659f0187a402f501d841abbe/README.rst",
      "accessed": "2026-10-28"
    },
    {
      "id": "hesela-bagit",
      "title": "Hesela: BagIt validation outcomes, controlled observations and replay package",
      "url": "https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#bagit-validation",
      "accessed": "2026-10-28"
    },
    {
      "id": "ocfl-paper",
      "title": "Hankinson et al. (2019): OCFL metadata-read accounting, section 2.1 and Tables 1-2",
      "url": "https://doi.org/10.3390/publications7020039",
      "accessed": "2026-11-02"
    },
    {
      "id": "hesela-filenames",
      "title": "Hesela: Restoring file names: when matching hashes hide a lost entry",
      "url": "https://hesela.com/analyses/filename-identity-backup-restores/",
      "accessed": "2026-10-20"
    },
    {
      "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": "restore-backups",
      "title": "Apache Cassandra 5.0.0. Backups: retained SSTable copies.",
      "url": "https://github.com/apache/cassandra/blob/186272edca920c757b91bf95c2392bafa1a38d72/doc/modules/cassandra/pages/managing/operating/backups.adoc",
      "accessed": "2026-11-03"
    },
    {
      "id": "restore-evidence",
      "title": "Hesela: archive-import teaching model, source receipts and reproduction",
      "url": "https://hesela.dev/research/tombstone-restore-closure/README.md",
      "accessed": "2026-11-03"
    }
  ],
  "provenance": [
    "OCFL: seven synthetic fixtures, two validation modes, two retained runs (28 CLI calls), plus an exact author-side native replay. One ocfl-py 2.1.0 build, Linux host and Python 3.12.3; no independent replication, crash, cloud or repository-wide completeness claim.",
    "Topology and selected-restore studies retain separate sets of 320 invocations: synthetic quiescent files on one Linux/ext4 host and two rsync builds, not failure-rate samples.",
    "Size, mode and mtime only; no concurrent, open-handle, bind-mount, media-independence, crash or application-recovery claim.",
    "Immutable evidence and historical candidate-status context: https://hesela.dev/research/rsync-topology-20261023/PUBLICATION.md",
    "XZ: nine designed synthetic fixtures, 36 reader observations per capture, two retained repeats on one XZ Utils/liblzma 5.4.5 binary; no field rate or independent replication. Evidence: https://hesela.dev/research/xz-verification/README.md",
    "Avro: nine constructed configurations read by Apache Avro 1.12.2 and fastavro 1.13.1; two retained captures of 18 observations, not field rates or independent peer review. Raw timestamp controls change the supplied writer schema, not an unchanged container's embedded schema.",
    "BagIt: 12 designed cases, 36 actual CLI invocations per run; unchanged upstream 1.9.0 commit 861ddacb339d5b92659f0187a402f501d841abbe. Original 2026-10-26 results replayed 2026-10-28 on the same Linux host; not a field rate, full conformance audit or independent replication.",
    "BagIt mode scope: fast checks payload size/count; completeness-only stops before hashing. Recomputing manifests after replacing bytes can pass full validation but fail the independently retained original-content expectation.",
    "BagIt evidence: https://hesela.dev/research/bagit-validation-observations.json ; offline replay: https://hesela.dev/research/bagit-validation-boundaries.zip",
    "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]",
    "2026-11-03: source synthesis and fixed single-cell model for future-import scope; no native Cassandra experiment or independent peer review."
  ]
}
