Skip to content

Use local Postgres backups in production#297

Merged
ewlarson merged 6 commits into
developfrom
feature/postgres-local-backups
Jun 18, 2026
Merged

Use local Postgres backups in production#297
ewlarson merged 6 commits into
developfrom
feature/postgres-local-backups

Conversation

@ewlarson

@ewlarson ewlarson commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a local Postgres backup target with compressed dumps, manifests, retention pruning, and a process lock to skip overlapping runs
  • configure production to use mounted local backup storage for Postgres while keeping S3 settings available for non-local targets
  • lower production LOG_LEVEL to INFO and update the cron/Makefile wording away from Postgres S3-only backups
  • configure SSR AppSignal to ignore the known Writable closed before stream finished notice in production via APPSIGNAL_FRONTEND_IGNORE_ERRORS

Validation

  • make lint-check
  • BTAA_SKIP_TEST_DB=1 python -m pytest backend/tests/scripts/test_backup_postgres_to_s3.py backend/tests/test_kamal_deploy_config.py
  • node --check frontend/appsignal.cjs

Notes

  • Elasticsearch snapshots remain S3-backed.
  • Unrelated frontend working-tree changes were intentionally left out of this branch.

Comment thread backend/scripts/backup_postgres_to_s3.py Fixed
Comment thread backend/scripts/backup_postgres_to_s3.py Fixed
Comment thread backend/tests/scripts/test_backup_postgres_to_s3.py Fixed
@ewlarson ewlarson marked this pull request as ready for review June 18, 2026 19:13
@ewlarson ewlarson merged commit 93f73d6 into develop Jun 18, 2026
12 checks passed
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