Skip to content

Backup & restore

Everything Cloudkeel-DD needs to reconstruct itself lives in PostgreSQL — integrations, encrypted credentials, discovered resources, and drift history. Back up the database and safeguard the Fernet key, and you can restore fully.

ItemWhereWhy
PostgreSQLYour databaseAll state: integrations, resources, scans, drift, history
Fernet keyYour secret managerWithout it, restored credential rows are undecryptable
Helm valuesVersion control (secrets referenced, not inlined)Reproduce the exact install

Redis holds only transient queue/rate-limit data — it does not need backup; it rebuilds itself.

Use your managed database’s snapshot/backup feature, or pg_dump:

Terminal window
pg_dump --format=custom --no-owner "$DATABASE_URL" > d-detective-$(date +%F).dump

Automate it on your normal database backup schedule. Findings are re-derivable on the next scan, but history and acknowledgements are not — so back up regularly.

  1. Provision a database and restore the dump:
    Terminal window
    pg_restore --clean --no-owner -d "$NEW_DATABASE_URL" d-detective-YYYY-MM-DD.dump
  2. Install/point Cloudkeel-DD at the restored database with the same Fernet key it had when the backup was taken.
  3. Start the app; it picks up all integrations and history. Run a scan to refresh live state.

For a full cluster loss: restore PostgreSQL from backup, reinstall the chart with the same Fernet key and values, point at the restored DB. Recovery time is dominated by the database restore; the app itself comes up in minutes.