A backup you have not restored is not a backup
A simple routine for verifying backups before they are needed.
Most projects have backups. Far fewer have backups that have ever been restored.
The routine
- Nightly encrypted database dump off-site.
- Weekly restore into a throwaway container.
- Smoke test on key tables.
- Alert on any failure.
pg_restore -d restore_test --clean latest.dump