Test a PDF backup against its catalogue and checksums
25 July 2026
A backup can unzip successfully and still fail the first lookup. This exercise restores a small SQLite catalogue and synthetic PDFs, then removes the catalogue or alters a document. The checks show why a successful extraction needs both a catalogue lookup and a file comparison before an operator can trust the result.
What must be recoverable after extraction?
The decision is whether the recovery procedure works for a defined disruption and configuration. Specify what is lost: a worker, database, storage location, configuration or whole environment. Name the incident decision owner, recovery operator and business representative who will accept restored service.
Record the recovery time objective and recovery point objective before the exercise. In NIST SP 800-34 Rev. 1, these distinguish tolerable resource unavailability from the point to which business data can be recovered. The publication is US federal contingency-planning guidance from 2010; use its concepts with your organisation’s own requirements rather than importing a universal target.
Where this guidance stops
Backup architecture and target selection are prerequisites. This article addresses executing and assessing an exercise. It does not prove that an existing backup is complete merely because a backup job succeeded, or that a local file restore represents the complete recovery of a distributed service.
Prepare evidence and a safe test environment
Backups, dependencies and isolation
Build a dependency inventory with versions, owners, restoration sources and checks. Include the state that connects documents to users and jobs, rather than listing storage alone.
| Component | Evidence required before starting | Recovery check |
|---|---|---|
| PDF objects | Snapshot, version identities and hashes | Required objects match the accepted recovery point |
| Catalogue or database | Consistent backup and restoration method | Records refer to the correct objects |
| Configuration | Versioned settings and dependencies | Restored service uses the intended environment |
| Keys and identity | Authorised recovery procedure and custodians | Required access works without widening permission |
| Queues and delivery state | Job identities and reconciliation rules | Pending work is recovered without duplicate delivery |
| External services | Dependency status and approved test arrangement | The intended end-to-end workflow completes |
Use an isolated environment with known boundaries. Suppress or redirect real notifications and external writes where the exercise requires it. Agree the stop condition, who can stop the exercise and what happens to partially restored state. Do not test loss by destroying the only recoverable copy.
Check that instructions are available when the primary service is unavailable. A recovery document stored only behind the failed identity provider may be inaccessible at the moment it is needed. Include contact and access dependencies in the exercise preparation.
A restored catalogue and two injected faults
Inputs, assumptions and the expected result
The synthetic backup contains four original PDF fixtures, a closed SQLite catalogue and a small configuration file: six files in total. The backup manifest records their sizes and SHA-256 values. The catalogue maps stable document IDs to paths, hashes and expected page counts.
On 31 October 2026, Python 3.12.14 restored the bundle into fresh temporary directories. SQLite 3.53.1 supported the catalogue query, and pypdf 6.10.0 opened the selected invoice fixture. The measured baseline took approximately 1.65 ms to extract the bundle and 5.37 ms to verify it, or 7.02 ms in total in this shared local environment.
| Executed case | File-integrity result | Local retrieval check | Decision |
|---|---|---|---|
| Complete bundle | All six files matched | Document ID resolved; PDF page count and expected text checked | Bounded local check passed |
| Catalogue removed after restore | Missing database identified | Not attempted | Blocked |
| Table PDF altered after restore | Hash mismatch identified | Not attempted | Blocked |
The results record retains unrounded durations and exact fault paths. The reproduction script shows the restore, checks and deliberately injected faults. Each case started from a new copy; no production service was interrupted.
Separately, the teaching scenario assigns a fictional last recoverable event of 09:40 and a fictional disruption at 10:00. That is a modelled twenty-minute recovery-point gap. Against a proposed fifteen-minute limit, it misses the target by five minutes. Those scenario timestamps are not the actual experiment clock and do not measure a real organisation’s data loss.
What the results establish
The run shows that the supplied local bundle can be extracted, checked and queried, and that two specific omissions or changes block acceptance. It does not measure platform RTO or RPO. Detection, declaration, infrastructure, keys, identity, permissions, networking, queues, business acceptance and failback were excluded. Milliseconds spent on a tiny local bundle cannot support a production recovery promise.
Verify restored data and workflows
Integrity, permissions and end-user tasks
First establish the restored state’s identity. Compare it with the approved recovery point and explain missing or newer records. Matching a backup manifest proves consistency with that manifest; it does not establish that the chosen backup contains all business work that should have been retained.
Next check the relationships between data stores. A catalogue row pointing to a missing PDF is a failure even if the database itself opens. A document without its correct ownership or status may also be unusable. Reconcile identities, versions and references before allowing normal processing to resume.
Then test actual user tasks: find a known document, open the intended version, submit an authorised new job and retrieve its result. Include a user who should be denied access. Record the environment and observed outcome for each task. The example’s local query and parser check cover only a small part of this sequence.
For interrupted work, distinguish accepted, running, completed and delivered states. Decide which jobs may be retried and how duplicate results will be identified. Replaying every queued event without examining completed delivery can create an apparently healthy service with incorrect business outcomes.
NIST’s testing guidance calls for explicit objectives, success criteria and documented findings across the relevant components. Use that principle to keep the exercise’s conclusion tied to observed tasks rather than the last successful restoration command.
Acceptance checklist for a PDF-platform recovery test
Missing state, timing gaps and corrective actions
Preserve a timeline from the agreed incident start through detection, declaration, access, restore, validation and business acceptance. Where work happens in parallel, calculate elapsed time from timestamps instead of summing overlapping task durations. Record waiting periods as part of the timeline when they affect recovery.
Before accepting the exercise, answer:
- Was the disruption and starting condition the one that was authorised?
- Are the restored objects and associated state consistent with the selected recovery point?
- Do permitted and prohibited access cases behave as required?
- Can the essential business workflow complete without unexplained duplicates or losses?
- Do measured elapsed time and recovered data meet the agreed objectives?
- Are failed checks, excluded dependencies and corrective actions assigned to owners?
Treat the missing-catalogue case as a useful failure, not a nuisance to remove from the report. It demonstrates that file restoration alone is insufficient. Correct the recovery procedure, create the necessary evidence and repeat the affected path before changing the decision.
If an objective cannot be met, record the operational consequence and the owner’s response. A revised target needs a business decision; it should not be changed silently after seeing the result. Retain the failed exercise and the later retest as separate records.
Approve the recovery capability with limits
Observed results, exclusions and next exercise
The acceptance record should state the scenario, configuration, backup identity, participants, timeline, recovered state, workflow results and unresolved exclusions. Obtain approval from the people responsible for both technical recovery and the affected business process. A generated report cannot supply their acceptance.
Plan the next exercise around a material remaining uncertainty. That might be loss of an encryption key, a queue containing partially completed jobs or an unavailable external identity service. Choose it because it changes the recovery decision, and agree its safe execution before starting.
For this example, the supported conclusion is a successful bounded local restore with two correctly blocked fault cases. The fifteen-minute recovery-point target fails in the separate fictional scenario. An organisation can now use the procedure to design its own authorised exercise, add the missing dependencies and assess the real service against its own objectives.
Sources
- NIST, SP 800-34 Rev. 1, Contingency Planning Guide for Federal Information Systems, May 2010, updated November 2010: https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-34r1.pdf. Sections 3.2 and 3.5; accessed 31 October 2026.
- NIST publication record and revision identity: https://csrc.nist.gov/pubs/sp/800/34/r1/upd1/final. Accessed 31 October 2026. This is guidance context, not a claim that a specific platform or jurisdiction has been certified.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex).
