Sparta Docs
Security and operations

Plan and verify backups

Protect the database, evidence objects and encryption material as separate recovery dependencies for a customer-owned installation.

Inventory the recovery set

ComponentRetain
D1Schema, migrations, application records, audit history and integrity checkpoints.
R2Evidence, snapshots, policy files, audit packages and archived integrity leaves.
KV and secretsSealed provider data where used, encryption keys, key identifiers and deployment configuration.
IdentityA protected authenticator backup and a second administrator.

A D1 export does not include R2 objects or Worker secrets. Retain the API Worker's MASTER_KEY, its MASTER_KEY_ID and any other release-specific encryption material in the approved secret store. Losing these keys can make encrypted material unrecoverable.

Configure the backup job

Installation alone does not establish a backup schedule. Assign an operator, storage destination, encryption recipients, retention policy and monitoring.

The source repository includes an age-encrypted D1 backup workflow with configurable recipients and a 90-day lifecycle. It must be configured against the actual installation and its environment; do not assume it runs in a customer account automatically.

Verify recovery

Retain owner-controlled decryption keys offline. Rehearse decryption and restore into an isolated database. Check application records, audit history, integrity leaves and access after recovery.

Restore from backup describes the safe sequence. A successful upload or scheduled job is not evidence that the full installation can be recovered.

On this page