feat(backup): nightly off-site copy to Cloudflare R2; keep 2 local copies - #696
Merged
Merged
Conversation
mrviduus
force-pushed
the
feat/offsite-backup-r2
branch
2 times, most recently
from
October 4, 2026 23:09
1d923c9 to
dcc9d66
Compare
DB dump + storage + .env, encrypted + deduplicated; keep 7 nightly + 3 monthly; fails above 9 GB to stay inside R2's free 10 GB. Skipped until secrets exist. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
mrviduus
force-pushed
the
feat/offsite-backup-r2
branch
from
October 4, 2026 23:29
dcc9d66 to
095c806
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Architecture review 2026-10, P0 #4: every backup lived on the same box as the data.
What
restic/restic:0.17.3, nothing installed on the host) → Cloudflare R2 buckettextstack-backups. Backs up the nightly DB dump,data/storage(directly — deduplicated) and.env. Encrypted client-side (RESTIC_PASSWORD, also in the owner's password manager)./; history now lives in R2.tarexit 1 ("file changed as we read it") is a warning, not a failure — it broke the first test run.Verified
Rollback
Revert. The R2 bucket/secrets can stay.
🤖 Generated with Claude Code