Backup manifest
A backup manifest is a machine-readable inventory of expected backup contents and associated verification metadata.
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.
A 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. [10]
For 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. [7]
BagIt 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. [11] [12]
Record 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. [13] [14]
Avro recovery also needs the intended reader schema. [17] [18]
Retain 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. [23]
Relations
- related
- Backup verification, Incremental backup, Restore test, Storage immutability, Full backup, Synthetic full backup, Archive member, PostgreSQL timeline, Timeline history file (PostgreSQL), Hard link, Filename collision, Backup catalog, BagIt, Oxford Common File Layout
Advantages
Limitations
- 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. [1, 3, 4]
- 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. [1, 4]
- 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. [22, 1]
- Optional per-file checksums must not be assumed present. [6]
- A hash match cannot authenticate a manifest that an attacker could also replace. [8]
- 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. [15, 16]
- 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. [17, 18]
- 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. [11, 19, 21]
- 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. [24, 25]
- A verified source tag does not authenticate an independently selected archive member inventory. Preserve required paths and trusted output expectations. [26, 27]
- 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. [28, 29]
Citations
- OCFL 1.1 specification: object-at-rest consistency and external digests
- ocfl-py 2.1.0: pinned file-versus-object validation dispatch
- Hesela: OCFL controlled results, fixtures, method and replay package
- PostgreSQL 18: Backup Manifest Format
- PostgreSQL 18: Backup Manifest File Object
- PostgreSQL 18: Backup Manifest WAL Range Object
- PostgreSQL 18: pg_basebackup, manifest checksums and trust
- Hesela: TAR member selection after successful decompression
- RFC 8493: BagIt 1.0, sections 3 and 5.4
- Hesela: expected-set payload acceptance for TAR recovery
- Hesela: restoring names is not restoring file relationships
- Hesela: selected rsync restores, retained observations and reproduction
- XZ format 1.1.0: stream structure, Block Check and Index
- Hesela: XZ stored checks, executed checks and intended stream sequence
- Apache Avro: pinned specification, schema resolution, canonical form and encoding formats
- Hesela: Avro reader-policy controls and complete reproducible evidence
- Library of Congress: pinned bagit-python 1.9.0 validation implementation
- Hesela: BagIt validation outcomes, controlled observations and replay package
- Hankinson et al. (2019): OCFL metadata-read accounting, section 2.1 and Tables 1-2
- Hesela: Restoring file names: when matching hashes hide a lost entry
- Git v2.43.0: checkout/check-in conversion and filter requirements
- Git v2.43.0: path-aware hashing and --no-filters
- Git v2.43.0: archive attributes and commit labels
- Hesela: three separately scoped Git recovery-identity studies and runnable evidence
- Apache Cassandra 5.0.0. Backups: retained SSTable copies.
- Hesela: archive-import teaching model, source receipts and reproduction
Further reading
- OCFL 1.1 implementation notes: version immutability and update recovery
- Hesela: Backup verification is not a restore test
- Library of Congress: pinned bagit-python validation modes and CC0 notice
Sources & caveats
- 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. [27]
- 2026-11-03: source synthesis and fixed single-cell model for future-import scope; no native Cassandra experiment or independent peer review.