Skip to content

fix(backup): B2 prune deletes via anchored --include + re-list verify - #2266

Merged
jaywedgeworth22 merged 1 commit into
mainfrom
claude/b2-prune-deletefile-fix
Aug 31, 2026
Merged

jaywedgeworth22 merged 1 commit into
mainfrom
claude/b2-prune-deletefile-fix

Conversation

@jaywedgeworth22

Copy link
Copy Markdown
Owner

First live prune tick (2026-08-31 12:15Z) selected the right candidate sets but deleted 0 of 12: rclone deletefile cannot resolve exact object paths under the scoped fleet-backup-writer-hetzner key ("is a directory or doesn't exist" while lsf lists the same path). Deletes now use rclone delete "b2:<bucket>/hetzner/" --include "/<name>" (verified live on one stale sidecar) and are confirmed by re-listing, since rclone delete exits 0 even when nothing matched.

Also records in the rollout note the congress-trade-bucket bulk/ R2 lifecycle tightening 14d -> 7d (applied + read back via Cloudflare API today): bulk/ is the active daily export at ~0.65 GB/day, and at 14 days it pushes the bucket past the 10 GB free tier in September.

Docs: docs/rollouts/2026-08-31-b2-hetzner-prune.md (Live-run follow-up), docs/EFFORT-LOG.md. Follow-up to #2264. Host sync after merge.

🤖 Generated with Claude Code

…; record bulk/ lifecycle 14d->7d

The scoped fleet-backup-writer key cannot resolve exact object paths
(rclone deletefile fails 'doesn't exist' while lsf lists the path), so the
first live prune tick deleted 0 of 12 candidates.  Deletes now use
rclone delete with an anchored --include filter and are verified by
re-listing, since rclone delete exits 0 on no match.

Docs updated: docs/rollouts/2026-08-31-b2-hetzner-prune.md (live-run
follow-up + congress-trade-bucket bulk/ lifecycle 14d->7d record),
docs/EFFORT-LOG.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jaywedgeworth22
jaywedgeworth22 enabled auto-merge (squash) August 31, 2026 15:16
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@jaywedgeworth22
jaywedgeworth22 merged commit 1b430d4 into main Aug 31, 2026
11 checks passed
@jaywedgeworth22
jaywedgeworth22 deleted the claude/b2-prune-deletefile-fix branch August 31, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant