Skip to content

Restore

Restore service from backups after data loss or when standing up a replica.

Restore PostgreSQL from the latest dump (or PITR via WAL), restore MinIO objects from the off-site copy, then bring services up in order: migrate → control → web. Verify health and migration version before reopening traffic.

Point DATABASE_URL and MinIO settings at the target environment before restoring.

Terminal window
# Restore PostgreSQL from a custom-format dump
pg_restore --clean --if-exists --dbname "$DATABASE_URL" get2dial-2026-07-01.dump
# Restore objects
mc mirror --overwrite offsite/get2dial-backup local/get2dial
# Bring the stack up
docker compose up -d
  • Restore into a clean target; --clean drops existing objects first.
  • Validate /healthz and the migration version before sending traffic.