Backup¶
🚧 In progress.
Will cover:
pg_dumpstrategies: full vs schema-only vs data-only, custom vs plain SQL format, compression, parallel dump with-j.Restore drill:
pg_restoreagainst an empty target DB; verifying the restore viadb status+db info.Cron / systemd timer setup for routine dumps in production.
Off-site replication of dumps and snapshots.
When a snapshot is sufficient as a backup and when only a
pg_dumpwill do (snapshots are read-only and schema-frozen — fine for content recovery, not for resuming writes).Tested restore policy: a backup you have never restored is not a backup.