Ops: set up automatic PostgreSQL backups

Đang mở
#299 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker, docker-compose, postgresql

Hướng nghiên cứu

Start by reading the POSTGRES_* settings and the external pg_net network in deployment/portainer/docker-compose.portainer.yaml, then the postgres service in docker-compose.yaml. The approach (pg_dump, pgBackRest, snapshots) is still open, so agree it with the maintainer before writing anything. Done means a scheduled, off-site, encrypted backup with a documented and tested restore, plus an alert on failure.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Goal

Establish automated, restorable backups for the production Meshflow PostgreSQL database (Django/Celery/Channels data).

Context

  • Production stack: Portainer compose — deployment/portainer/docker-compose.portainer.yaml (API/workers use POSTGRES_* env; DB likely on external pg_net network).
  • Local/dev: postgres service in root docker-compose.yaml (postgres:17-alpine for dev — production version may differ).
  • No automated backup process is documented or wired in-repo today.

Scope

  • Choose approach: scheduled pg_dump (custom format + compression), pgBackRest, cloud provider snapshots, or host/volume backup — document rationale
  • Schedule (e.g. nightly full + optional WAL/archiving if RPO/RTO require it)
  • Off-site / off-volume destination (S3-compatible, second host, etc.) — backups on same disk as data are not sufficient
  • Retention policy (e.g. 7 daily, 4 weekly)
  • Encryption at rest for backup files (if stored outside trust boundary)
  • Runbook: restore procedure + tested restore drill on staging (or disposable clone)
  • Monitoring/alerting on backup job failure
  • Document in docs/ or deployment/ (env vars, cron/compose sidecar, credentials handling — no secrets in git)

Out of scope

  • Neo4j backup (separate ticket if needed)
  • Redis persistence strategy (separate concern)

Acceptance

  • Automated backups run on schedule without manual intervention
  • Operator can restore DB to a point in time within agreed RPO using documented steps
  • Failed backup run generates an alert or visible log/metric
Ngôn ngữ chính
Python
Star
1
Fork
0
Merge trung bình
23 giờ 9 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pskillen/meshflow-api

Tất cả issue của pskillen/meshflow-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.