Commit Graph

10 Commits

Author SHA1 Message Date
OdooSky v3
7b3a0cde5d fix(chart/backups): normalize S3 endpoint scheme — close CN parity Bug #4 (Slice 12.4)
awscli --endpoint-url rejects bare hostnames ("scheme is missing").
Tower's migrate path emitted bare s3-cn-gd.ufileos.com for CN
tenants, which booted every scheduled backup pod into Error within
seconds. Chart-side fix: prepend https:// when missing, resilient
to either shape. Bumped 0.1.12 -> 0.1.13.

Render-tested both shapes:
  endpoint: s3-cn-gd.ufileos.com    -> "https://s3-cn-gd.ufileos.com"
  endpoint: https://s3.amazonaws.com -> "https://s3.amazonaws.com"
2026-05-27 22:52:55 +02:00
Tower Deploy
2ae8f5343e feat(chart): backup CronJob keys S3 off instance.id (code fallback) 2026-05-15 07:37:16 +02:00
6168b86c2a backup-cronjob: rotation must not touch checkpoints/exports subdirs (use --delimiter / + strict regex) 2026-04-28 10:58:54 +00:00
760ee75877 backup-cronjob: PGDATABASE = release name (system POSTGRES_DB was empty) 2026-04-28 10:50:01 +00:00
213170e5ce backup: skip ./sessions in nightly tar (matches reshape checkpoint) 2026-04-27 20:35:47 +00:00
Tower Deploy
9dace864d8 Backup CronJob: also archive filestore (/var/lib/odoo) to S3 alongside the SQL dump
Pairs each <TS>.sql.gz with a <TS>.filestore.tar.gz under the same prefix; rotation prunes both together. Backup pod runs on the same node as Odoo (podAffinity) and mounts the filestore PVC read-only — RWO permits multiple pods on the same node, so this is safe.

Restore (Tower-side) reads the companion key from S3, scales Odoo to 0, restores DB + filestore, and scales Odoo back up.
2026-04-26 23:33:30 +03:00
git_admin
94fe1bf18b Backups: pipefail on pipeline so pg_dump errors propagate 2026-04-26 21:31:13 +03:00
git_admin
5af1f3a042 Backups: switch to postgres:alpine + apk add aws-cli (Bitnami images gated) 2026-04-26 21:29:37 +03:00
git_admin
3a63da9609 Backups: pg_dump → S3 (MEGA S4); drop local PVC 2026-04-26 21:17:34 +03:00
git_admin
24f879db01 Add daily backups (CronJob + dedicated PVC, 7-day retention) 2026-04-26 21:01:17 +03:00