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.
What to back up
Section titled “What to back up”| Item | Where | Why |
|---|---|---|
| PostgreSQL | Your database | All state: integrations, resources, scans, drift, history |
| Fernet key | Your secret manager | Without it, restored credential rows are undecryptable |
| Helm values | Version 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.
Backing up PostgreSQL
Section titled “Backing up PostgreSQL”Use your managed database’s snapshot/backup feature, or pg_dump:
pg_dump --format=custom --no-owner "$DATABASE_URL" > d-detective-$(date +%F).dumpAutomate 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.
Restoring
Section titled “Restoring”- Provision a database and restore the dump:
Terminal window pg_restore --clean --no-owner -d "$NEW_DATABASE_URL" d-detective-YYYY-MM-DD.dump - Install/point Cloudkeel-DD at the restored database with the same Fernet key it had when the backup was taken.
- Start the app; it picks up all integrations and history. Run a scan to refresh live state.
Disaster recovery
Section titled “Disaster recovery”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.