feat: verify postgres backups
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 18:38:57 -04:00
parent cb26d16061
commit 73b4b9795e
3 changed files with 50 additions and 0 deletions
+10
View File
@@ -109,6 +109,16 @@ POSTGRES_PASSWORD='use-secret-storage' \
./scripts/restore-postgres.sh
```
Verify a dump before scheduling a restore:
```sh
BACKUP_FILE=/secure/backups/inventory-20260909T000000Z.dump \
./scripts/verify-postgres-backup.sh
```
This checks that the file is a readable PostgreSQL custom-format archive without
changing any database.
Back up image storage and the deployment `.env` through the NAS secret/backup
system as well. Never commit either one. Before upgrading, record the current
image tags and database migration state. To roll back, stop the application