Off-box encrypted backups to Contabo Object Storage #14
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#14
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/storage-backups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Delivers the storage-integration plan's backup tier. Already live (not just proposed): first backups are in the bucket and restore-verified.
Done manually + verified this session
backups/db/prod/(~780 MB each). Restore-verified (download -> age-decrypt with host key -> validPGDMP).backups/forgejo/(encrypted).This PR makes it recurring
ops-cron.yml: the prod pg_dump job now age-encrypts + pushes off-box; a newforgejo-backupjob backs up Forgejo's db + data volume on beta. 30-day off-box retention on both. Streamed (age | rclone rcat) — no local intermediate, nothing plaintext leaves the box./etc/thermograph/age.keyon each host decrypts for restore.S3_*, already set) — the uniform CI home (beta's deploy user can't read/etc/thermograph.env) — and mirrored into the SOPS vault for host-side use.deploy/backup/README.md: DR restore runbook (prod DB + Forgejo).Verify after merge:
workflow_dispatchthe "Ops cron (backup + IndexNow)" workflow and confirm thebackup+forgejo-backupjobs are green and new objects land in the bucket.Note: beta's
deployuser is in the docker group (sodocker exec/docker runneed no sudo) but has no sudo, sorclone/ageare pre-installed there rather than apt-installed by the job.