Rehearse a restore safely
Status: Ready
Article ID: 097
Truth label: Current
Audience: Operator
Reader outcome: Verify into a scratch directory before an incident.
Related articles: 056, 095, 096
Target week: 39
Last verified: 2026-09-13
Technical reviewer: Codex operations audit
Editorial reviewer: Codex editorial audit
Choose an isolated target
Create a new scratch directory on a suitable native filesystem. Confirm it is not the live data root, repository root, home directory, or an existing service path. Keep restored services bound away from live ports.
Verify before extraction
Read the manifest, archive inventory, source version, scope, checksum, and encryption metadata. Stop if the checksum fails, the archive is incomplete, or the target is ambiguous.
Restore and inspect
Use the supported restore tool with explicit source and destination. It verifies every byte against the manifest before writing, refuses a role mismatch, refuses the live root while a service is up, and moves the existing contents aside rather than deleting them. Run store integrity checks, compare row and ledger counts against the live root, inspect permissions, and confirm raw artifacts are still protected. A drill into a scratch directory needs no downtime, which is what makes it a drill you will run.
Exercise synthetic recovery
Start isolated processes only if needed, using different ports and no live credentials. Read representative tasks, memory, and traces. For worker outbox testing, use a disposable Central and synthetic terminal payload.
Current limits
A successful Central restore does not prove remote worker credentials and outboxes, remote repositories, provider login, or external content roots are recoverable. A worker whose credential no longer matches its registration is locked out by design and re-enrolls once its registration is deleted. Restore time and completeness must be measured against the actual recovery objective.
Next lesson
Continue with Recover from a bad configuration variable.
Derivative map
- Weekly package: WEEK-39
- Long video: VIDEO-W39-LONG
- Shorts: SHORT-W39-PROBLEM, SHORT-W39-MECHANISM, SHORT-W39-WARNING
- Email: EMAIL-W39
- LinkedIn: LI-W39-A, LI-W39-B
- X: X-W39-A, X-W39-B
- Visual: VISUAL-W39
Review record
- Scratch target is explicitly excluded from every live or broad root.
- Checksum, scope, integrity, count, and permissions checks included.
- Any process test uses isolated ports and synthetic credentials.
- Omitted recovery domains remain explicit.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13