Restore test
A restore test exercises recovery from backup material and checks whether the recovered data or selected system functions meet defined acceptance criteria.
NIST CP-9(2) describes sampled restoration of selected functions. [2] State the backup and functions actually tested, acceptance checks and environment differences; do not present one successful sample as proof about every retained backup. Hesela recommends recording the PITR endpoint and checking recovered contents against the intended state. [4] A passing file check does not establish successful recovery. [1]
Timing: Record the interruption, recovery actions and service-acceptance timestamps separately. Test the named workload's recovery capability against its objective, with dependencies and any pre-provisioned resources identified. [6] Process-level acceptance may also require data reprocessing after resource recovery. [5]
Acceptance: Validate the recovered data state and the required system functions separately. NIST's reconstitution phase distinguishes these two checks before normal operation resumes. [5]
Access paths: A scan need not establish lookup or indexed-range correctness. LMDB/Tabix controls expose this gap; HDF5 separates chunk integrity from placement, generation and interpretation. [7] [8] [9] Bind generation, associated artifacts and reader settings; compare recovery queries with independently retained expected identities and values.
Checker scope: SWEEPER assumed an accurate corruption checker; its false negatives were missing checkpoint events, not undetected corruption in tested copies. [10]
Recovery search: SWEEPER's binary strategy assumes corruption persists in all later images. [10] A repair that passes the same check breaks that ordering; absent this assumption, do not discard later points after a failed check.
Relations
- related
- Backup verification, Backup manifest, Incremental backup, Air-gapped backup, Storage immutability, Backup, Recovery point objective, Recovery time objective, Point-in-time recovery, Recovery target, Maximum tolerable downtime, TIFF image file directory
Advantages
- Exercises selected system functions using recovered backup information. [2]
Limitations
- Evidence is limited to the tested scope and chosen sample. [2]
- File verification alone does not establish successful database operation and correct contents. [1]
- A successful PostgreSQL 16.15 restore and exact same-role comparison preserved only 2/4 required rows in a synthetic RLS control. Default pg_dump rejects policy application; explicit filtering needs a declared recovery scope. [13, 14]
- Restoring an etcd snapshot can leave watch clients with stale retained state; a restored database and a working stream do not establish agreement. Rebuild the client view from a current range and validate its watch handoff. [15] In the pinned 3.6.16 controls, equality between the marked boundary and resumed cursor did not cancel the old watch. [17] [16]
- In the CPython 3.12.3 ZIP controls, CRC rejection followed destination truncation or partial overwrite; header rejection preserved that target but retained earlier members. Isolated staging never promoted output, so it did not test atomic or crash-safe publication. [18]
Citations
- PostgreSQL 18: pg_verifybackup, checks and exclusions
- NIST SP 800-53 Rev. 5: CP-9(1), CP-9(2) and CP-10
- PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery
- NIST SP 800-34 Rev. 1 (2010), sections 3.2, 3.5 and 4.4: objectives, exercises and recovery validation
- AWS Well-Architected Framework (2024-06-27), REL13-BP01: recovery objectives and dependencies
- Hesela: LMDB comparator contract, complete scans and point lookups
- Hesela: BGZF/Tabix data-index pairing and query coverage
- Hesela: raw HDF5 chunks, identity and interpretation
- Verma et al.: SWEEPER (FAST 2008), sections 3.1.2, 5.1 and 5.2.4
- Li (2011): Tabix: fast retrieval of sequence features from generic TAB-delimited files, section 2.2
- HTSlib 1.24: Tabix region strings, indexing conventions and target-file formats
- PostgreSQL 16: pg_dump and explicit row-security filtering
- Hesela: PostgreSQL 16.15 row-security backup controls and exact transcripts
- etcd 3.6: disaster recovery, revision rollback and revision bump
- etcd 3.6: inclusive watch start and compaction cancellation
- Hesela: etcd 3.6.16 restore/watch controls, native transcripts and exact results
- Hesela: CPython 3.12.3 extraction failure states, original captures and reproducibility packet
Further reading
Sources & caveats
- Access-path and recovery-search advice are bounded engineering inferences, not a universal guarantee or a production failure-rate estimate.
- Query contracts: Record commands, paths, bounds and target-file contents. Tabix region strings are one-based and inclusive; BED intervals are zero-based and half-open. The -0 indexing option does not redefine region-string syntax. [12]
- Matching output alone does not prove equivalent selection: Tabix separates candidate-bin selection from record-overlap checks. [11] This is source-based acceptance advice, not a new experiment.
- 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. [14]
- ZIP extraction supplement: 36 deliberately constructed cases, three matching same-host captures; byte/name inventories only. No incident-rate, independent-replication, compression, hostile-path, metadata or crash claim. [18]