Skip to content

Backup and Restore

WhiteMuush edited this page Jul 11, 2026 · 1 revision

Backup and Restore

Gardik stores everything in PostgreSQL. Back it up daily.

  • make backup dumps the database to backups/ (pg_dump custom format).
  • make restore FILE=backups/<file>.dump restores a dump (destructive, asks for confirmation).
  • Managed PostgreSQL (RDS, Cloud SQL, ...): prefer the provider's native backups and point-in-time recovery.
  • Back up DIRECTORY_ENCRYPTION_KEY separately from the database. Without it, the encrypted directory configs inside a dump are unrecoverable.

Full guide (retention, crontab, restore test procedure): docs/backup.md

Clone this wiki locally