Skip to content

deploy: harden first bring-up and backups - #104

Merged
shaddi merged 1 commit into
mainfrom
deploy-fixes
Jul 3, 2026
Merged

deploy: harden first bring-up and backups#104
shaddi merged 1 commit into
mainfrom
deploy-fixes

Conversation

@shaddi

@shaddi shaddi commented Jul 3, 2026

Copy link
Copy Markdown
Member
  • restore-and-migrate.sh: drop the postgis extension the image auto-creates on a fresh PGDATA before the emptiness guard (its spatial_ref_sys table made the guard refuse a genuinely fresh database). The extension software stays in the image; enabling PostGIS later is still a one-line migration.
  • backup.sh (new): nightly dump through the db container with tiered retention (14 daily / 8 weekly / 12 monthly), atomic write with an archive-magic sanity check, socket auth so no password lives on the host. Replaces the raw pg_dump cron line in the README.

- restore-and-migrate.sh: drop the postgis extension the image auto-creates
  on a fresh PGDATA before the emptiness guard (its spatial_ref_sys table
  made the guard refuse a genuinely fresh database). The extension software
  stays in the image; enabling PostGIS later is still a one-line migration.
- backup.sh (new): nightly dump through the db container with tiered
  retention (14 daily / 8 weekly / 12 monthly), atomic write with an
  archive-magic sanity check, socket auth so no password lives on the host.
  Replaces the raw pg_dump cron line in the README.
@shaddi
shaddi merged commit ca91e62 into main Jul 3, 2026
3 checks passed
@shaddi
shaddi deleted the deploy-fixes branch July 6, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant