Define and document the Postgres backup/restore strategy #67
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot#67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
postgres_data is a named volume with no backup automation or documentation in
the repo. Add a scheduled
pg_dump(sidecar container or host cron) tostorage outside the volume with retention, plus a tested restore procedure in
README — or, if host/VM-level snapshots already cover this, document that
fact and the restore steps explicitly. A bad-migration restore point is also
a prerequisite for confident CD (F-27).
Acceptance criteria:
Filed from the 2026-07-17 codebase audit (
docs/.internal/report-2026-07-17.md), finding F-28.Done in #95 (merged to
main). Addedscripts/backup.sh(pg_dump → gzip → timestamped file → prune older thanBACKUP_RETENTION_DAYS), usable from host cron or directly. Also an opt-indb-backupcompose service underprofiles: ["backup"]that runs it on a schedule, writing to./backups(bind mount, outside thepostgres_datavolume). README documents enabling it (docker compose --profile backup up -d db-backup) or host cron, plus the restore procedure, and notes this logical backup is complementary to any Proxmox/VM snapshots.