Add daily encrypted borgmatic backup service

- /docker/backup: borgmatic container (daily 03:00 Berlin via BACKUP_CRON)
- Backs up /docker (ro) to local encrypted repo /var/backups/borg (repokey-blake2)
- Postgres prod+dev captured via pg_dumpall; live PG data/logs/build artifacts excluded
- Retention: keep_daily 7, keep_weekly 4, keep_monthly 6; runs prune/compact/create/check
- Secrets in backup/.env (gitignored, chmod 600)
This commit is contained in:
2026-05-31 22:29:46 +02:00
parent 02b4fe1fc0
commit e7a7cafa89
5 changed files with 163 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Never commit secrets.
.env