docs · v1 · Self-host

Backup and restore

Encrypted PostgreSQL backups and recovery drills.

Backup

Use scripts/ops/backup-postgres.sh with a restricted destination and encryption at rest. Retain backup logs separately from the database host.

Verify

A backup is not complete until scripts/ops/verify-postgres-backup.sh succeeds and a scheduled restore drill meets the agreed RPO/RTO.

Restore

Stop writers, validate the exact target database, restore, run migrations, start services and verify tenant-level smoke checks.