{
  "slug": "restore-test",
  "term": "Restore test",
  "aliases": [
    "test restore",
    "test restoration"
  ],
  "definition": "A restore test exercises recovery from backup material and checks whether the recovered data or selected system functions meet defined acceptance criteria.",
  "note": "NIST CP-9(2) describes sampled restoration of selected functions. [nist] 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. [pg-archive] A passing file check does not establish successful recovery. [verify]\n\nTiming: 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. [recovery-planning] Process-level acceptance may also require data reprocessing after resource recovery. [nist-recovery]\n\nAcceptance: Validate the recovered data state and the required system functions separately. NIST's reconstitution phase distinguishes these two checks before normal operation resumes. [nist-recovery]\n\nAccess 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. [restore-lmdb] [restore-bgzf] [restore-hdf5] Bind generation, associated artifacts and reader settings; compare recovery queries with independently retained expected identities and values.\n\nChecker scope: SWEEPER assumed an accurate corruption checker; its false negatives were missing checkpoint events, not undetected corruption in tested copies. [sweeper]\n\nRecovery search: SWEEPER's binary strategy assumes corruption persists in all later images. [sweeper] A repair that passes the same check breaks that ordering; absent this assumption, do not discard later points after a failed check.",
  "provenance": [
    "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. [tabix-query-contract]",
    "Matching output alone does not prove equivalent selection: Tabix separates candidate-bin selection from record-overlap checks. [tabix-paper-2011] 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. [rls-evidence]",
    "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. [zip-rollback]"
  ],
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "advantages": [
    {
      "text": "Exercises selected system functions using recovered backup information.",
      "citationIds": [
        "nist"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Evidence is limited to the tested scope and chosen sample.",
      "citationIds": [
        "nist"
      ]
    },
    {
      "text": "File verification alone does not establish successful database operation and correct contents.",
      "citationIds": [
        "verify"
      ]
    },
    {
      "text": "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.",
      "citationIds": [
        "pg-rls-dump",
        "rls-evidence"
      ]
    },
    {
      "text": "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. [etcd-recovery] In the pinned 3.6.16 controls, equality between the marked boundary and resumed cursor did not cancel the old watch. [etcd-restore-evidence]",
      "citationIds": [
        "etcd-recovery",
        "etcd-watch-api",
        "etcd-restore-evidence"
      ]
    },
    {
      "text": "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.",
      "citationIds": [
        "zip-rollback"
      ]
    }
  ],
  "related": [
    "backup-verification",
    "backup-manifest",
    "incremental-backup",
    "air-gap-backup",
    "immutability-storage",
    "backup",
    "recovery-point-objective",
    "recovery-time-objective",
    "point-in-time-recovery",
    "recovery-target",
    "maximum-tolerable-downtime",
    "tiff-image-file-directory"
  ],
  "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": "nist",
      "title": "NIST SP 800-53 Rev. 5: CP-9(1), CP-9(2) and CP-10",
      "url": "https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf",
      "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": "pg-archive",
      "title": "PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery",
      "url": "https://www.postgresql.org/docs/18/continuous-archiving.html",
      "accessed": "2026-10-14"
    },
    {
      "id": "nist-recovery",
      "title": "NIST SP 800-34 Rev. 1 (2010), sections 3.2, 3.5 and 4.4: objectives, exercises and recovery validation",
      "url": "https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-34r1.pdf",
      "accessed": "2026-10-19"
    },
    {
      "id": "recovery-planning",
      "title": "AWS Well-Architected Framework (2024-06-27), REL13-BP01: recovery objectives and dependencies",
      "url": "https://docs.aws.amazon.com/wellarchitected/2024-06-27/framework/rel_planning_for_recovery_objective_defined_recovery.html",
      "accessed": "2026-10-19"
    },
    {
      "id": "restore-lmdb",
      "title": "Hesela: LMDB comparator contract, complete scans and point lookups",
      "url": "https://hesela.com/analyses/lmdb-readers-page-reuse-map-full/#comparator-contract",
      "accessed": "2026-10-26"
    },
    {
      "id": "restore-bgzf",
      "title": "Hesela: BGZF/Tabix data-index pairing and query coverage",
      "url": "https://hesela.com/analyses/compressed-archives-dictionary-dependencies/#bgzf-evidence",
      "accessed": "2026-10-26"
    },
    {
      "id": "restore-hdf5",
      "title": "Hesela: raw HDF5 chunks, identity and interpretation",
      "url": "https://hesela.com/analyses/checksums-identity-and-lost-writes/#hdf5-chunk-interpretation",
      "accessed": "2026-10-26"
    },
    {
      "id": "sweeper",
      "title": "Verma et al.: SWEEPER (FAST 2008), sections 3.1.2, 5.1 and 5.2.4",
      "url": "https://usenix.org/legacy/events/fast08/tech/full_papers/verma/verma_html/index.html",
      "accessed": "2026-10-26"
    },
    {
      "id": "tabix-paper-2011",
      "title": "Li (2011): Tabix: fast retrieval of sequence features from generic TAB-delimited files, section 2.2",
      "url": "https://pmc.ncbi.nlm.nih.gov/articles/PMC3042176/",
      "accessed": "2026-10-26"
    },
    {
      "id": "tabix-query-contract",
      "title": "HTSlib 1.24: Tabix region strings, indexing conventions and target-file formats",
      "url": "https://raw.githubusercontent.com/samtools/htslib/1.24/tabix.1",
      "accessed": "2026-10-26"
    },
    {
      "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"
    },
    {
      "id": "etcd-recovery",
      "title": "etcd 3.6: disaster recovery, revision rollback and revision bump",
      "url": "https://etcd.io/docs/v3.6/op-guide/recovery/",
      "accessed": "2026-11-28"
    },
    {
      "id": "etcd-watch-api",
      "title": "etcd 3.6: inclusive watch start and compaction cancellation",
      "url": "https://etcd.io/docs/v3.6/learning/api/",
      "accessed": "2026-11-28"
    },
    {
      "id": "etcd-restore-evidence",
      "title": "Hesela: etcd 3.6.16 restore/watch controls, native transcripts and exact results",
      "url": "https://hesela.dev/research/etcd-restore-watch/results.json",
      "accessed": "2026-11-28"
    },
    {
      "id": "zip-rollback",
      "title": "Hesela: CPython 3.12.3 extraction failure states, original captures and reproducibility packet",
      "url": "https://hesela.dev/research/zip-crc-rollback/README.md",
      "accessed": "2026-11-29"
    }
  ]
}
