Use this to prove service-owned PostgreSQL backup and restore behavior for local portfolio evidence. Production restore should use managed RDS snapshots plus the same service ownership rules.
- Start the local stack.
- Create a backup directory outside tracked source or under ignored
backups/. - Back up all service databases:
.\scripts\backup-postgres.ps1 -OutputDir .\backups -Databases all- Restore one non-critical local database with explicit confirmation:
.\scripts\restore-postgres.ps1 -InputDir .\backups -Database devhire_job -ConfirmRestore- Run post-restore verification:
.\scripts\dr-verify.ps1 -GatewayUrl http://localhost:8080
.\scripts\api-smoke.ps1 -GatewayUrl http://localhost:8080- Restore is not destructive unless
-ConfirmRestoreis provided. - Do not restore one service database from another service backup.
- Do not commit backup files.
- Record RPO/RTO and drill date in release evidence.
- Backup files exist in ignored storage.
- Restored service responds through Gateway.
- Search and application flows still use service APIs, not cross-database reads.