Repository navigation
design(backups): backup mesh — topology, cadence per DB class, PITR-vs-restic bands (#9093) - #13467
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ea3a5a1b2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - **Forget/prune runs in R2 only.** The laptop and Drive repos receive | ||
| the thinned set by `restic copy`; no store prunes independently, so | ||
| the three snapshot sets cannot drift apart. |
There was a problem hiding this comment.
Propagate retention deletions explicitly to replica repositories
Once R2 retention forgets a previously replicated snapshot, restic copy will leave that snapshot in the laptop and Drive repositories. The restic documentation describes copying as “copies all snapshots from the source repository”; it does not synchronize deletions. With pruning prohibited on both destinations, their retained data grows indefinitely and their snapshot sets diverge from R2, contradicting both the retention policy and the exact-mirror topology. Specify coordinated destination forget/prune steps driven by R2’s retained snapshot set, rather than relying on copy to propagate thinning.
Useful? React with 👍 / 👎.
| - **The OpenCode session DB has no off-laptop backup** (21.37 GB, | ||
| ~5.1 GB zstd, measured 2026-11-12). Its economics research is #9094 | ||
| (open); the mesh leg is #13462, gated on it. |
There was a problem hiding this comment.
Reconcile class F with the existing OpenCode backup leg
The parent commit already configures a daily OpenCode database backup: nixos/home/laptop-backups.nix:211–220 enables opencode-db-backup by default, and nixos/home/opencode-db-backup.sh takes a consistent SQLite snapshot and backs it up to local, R2, and Drive repositories. Treating this as an uncovered database whose implementation must wait for #9094 creates a duplicate workstream, while the class-F topology also drops the existing R2 destination. Record the configured daily leg as the baseline and scope the research and follow-up issue to verifying or improving it, rather than gating initial coverage.
Useful? React with 👍 / 👎.
Refs #9093 — lands the design acceptance item; #9093 stays open as the mesh tracker until the legs land.
What this is
The backup-mesh design record:
doc/2026-11-23T16-34-18Z_design_backup_mesh/note.md. Docs only, one file, no code, no schedule created (so no registry change — each implementation PR lands its own row).Done check behind it (verified fresh against origin/main 2a96e87, 2026-11-23)
#9093's acceptance list, item by item:
export-tursokilled by the 30-min start timeout + unbounded /tmp scratch; fixed 2026-11-11, full 42/42 runs on record 2026-11-15/16. The interim risk is now named on audit(backups): 2026-10-27 coverage audit — aggregator offsite unproven, Kaneo/atlas gaps, NixOS backup service directive #1516 (comment 7107336806), completing that item's second half.Design decisions worth a reviewer's eye
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.