Skip to main content

Back up the complete data root

Status: Ready

Article ID: 095

Truth label: Current

Audience: Operator

Reader outcome: Create a checksum-manifest archive with retention.

Related articles: 053, 096, 097

Target week: 38

Last verified: 2026-09-13

Technical reviewer: Codex operations audit

Editorial reviewer: Codex editorial audit

Resolve the source explicitly​

Confirm the active Central and Brain data roots from configuration and process startup evidence. Never infer a live root from a shell variable or broad home directory. Stop or coordinate writers as Running the stack requires.

Create the archive​

Use the supported backup script. It archives everything in the data root except the archive directory itself, process locks, and WAL sidecars, copies every SQLite database at any depth through the backup API so the archive is safe to take while Central and Brain are writing, and writes a manifest with a checksum per member. Writing to a destination outside the live root refuses unless the archive is encrypted or plaintext is acknowledged, because where an archive lands is what decides whether encryption matters.

Protect and retain it​

Restrict backup-directory access, encrypt any archive that leaves the machine (the script's opt-in encryption is AES-256-GCM under a passphrase- derived key), and apply a documented retention and secure-deletion policy. Keep at least one copy outside the failure domain of the source disk.

Verify without mutation​

Verify the archive against its manifest, then restore into a newly created scratch directory and run read-only integrity checks there. The restore tool refuses to run over the live data root while either service is up and never deletes: the current contents move aside, so a bad restore is itself reversible.

Current limits​

A Central archive cannot contain a remote worker's credential and outbox, and no archive contains the external content roots: the voice pack directory and the influence library originals need their own copy. An archive is not complete recovery evidence until its scope is known and a restore drill succeeds.

Next lesson​

Continue with Back up worker-local state.

Derivative map​

  • Weekly package: WEEK-38
  • Long video: VIDEO-W38-LONG
  • Shorts: SHORT-W38-PROBLEM, SHORT-W38-MECHANISM, SHORT-W38-WARNING
  • Email: EMAIL-W38
  • LinkedIn: LI-W38-A, LI-W38-B
  • X: X-W38-A, X-W38-B
  • Visual: VISUAL-W38

Review record​

  • Source and destination paths must be explicit and narrow.
  • Manifest, checksum, retention, encryption, and isolated restore included.
  • Omitted Central and worker-local state remains explicit.
  • No live-root mutation appears in proof steps.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13