Documentation/Administer
Administer · v0.0.1

Backup & restore

Protect the relational state, evidence artifacts, secrets protection key, and release identity as one recoverable system.

AudienceDatabase administrators, SRE, disaster-recovery ownersReading time17 minCommands in context7 guided stepsReviewed sourcefcc5871 · 30 July 2026
RC

Exact release scope. This page documents the reviewed v0.0.1 source at fcc5871. Check release status before enabling a gated capability.

Backup set

ComponentWhy it mattersProtection
PostgreSQLUsers, configuration, runs, plans, audit, metadata, projections.Consistent custom-format dump or approved physical/PITR process.
Artifact storageLogs, command evidence, reports, bundles, integrity material.Snapshot/copy with object metadata and checksums.
Secrets protection keyDecrypts protected stored material.Separate encrypted escrow with controlled recovery access.
Release and configuration evidenceIdentifies exact runtime, compatibility, gates, and topology.Immutable copy with the recovery package.
External dependenciesRegistry, object store, DNS, TLS, external database.Their own tested recovery plans and credentials.

PostgreSQL logical backup

The custom format is compressed and can be selectively inspected/restored with pg_restore. Keep credentials out of shell history and process output; the variable above represents an injected secret in the backup job, not a value to paste into a terminal.

PostgreSQL pg_dump reference

Consistency and verification

  1. 01

    Quiesce or record the consistency boundary

    Coordinate active OperationRuns and artifact writes so database metadata and blobs can be reconciled.

  2. 02

    Back up PostgreSQL and artifacts

    Capture timestamps, checksums, version, object count, and any excluded/held data.

  3. 03

    Escrow key and release metadata

    Store separately under dual control where required.

  4. 04

    Run structural verification

    List the dump, sample artifact blobs, verify checksums, and ensure the exact release is available.

  5. 05

    Restore into an isolated environment

    Prove health, readiness, decryption, run/evidence reads, agent re-registration, and one bounded operation.

Restore procedure

  • Deploy the same or an explicitly compatible ClusterPilot release before attaching restored state.
  • Restore artifacts to the configured provider and verify metadata/checksum parity.
  • Inject the matching secrets protection key and key ID before testing protected data.
  • Run database migration/compatibility checks; never force a downgrade over forward-only migrations.
  • Rotate bootstrap/session/provider credentials when incident or environment transfer policy requires it.
PostgreSQL pg_restore reference

Define and test objectives

ClusterPilot does not invent an RPO or RTO for the customer. Define both from accepted data loss, evidence retention, run recovery, external dependency recovery, and staffing. Test on the real deployment profile and retain measured timings and failure observations.