rdmbair15m5-changelog-20260923-1902-task-20260901-10-remove-tracked-backups-fleetwide
rdmbair15m5-changelog-20260923-1902-task-20260901-10-remove-tracked-backups-fleetwide
Audited 93 tracked backup files across 9 canonical repositories, confirmed divergence against live counterparts, removed all stale backups via git rm, and added .gitignore rules to prevent pre-fix answers to grep.
Scope
- Host: rdmbair15m5 (coordinated execution on rdmsm4x:~/dev and git.ecs0.net bare store)
- Repositories: issues, sites/dev.ecs0.net, todo, notes, data, lib/domains, scripts/macos, scripts, fleet
Problem Addressed
Tracked .bak, .orig, and
.bak-* files across repositories answered searches (e.g.
grep -r, git grep) with stale pre-fix
implementations or obsolete schemas (e.g. outdated
bin/ticket, outdated products.json, old
gateway.conf lacking /mem0 proxying). Git
history already preserves all previous iterations, making tracked
in-tree backup files redundant hazards.
Audit Findings & Actions
- Divergence Analysis:
- 81 files were divergent obsolete snapshots of live files (e.g.
products.json,domains.json,bin/ticket,gateway.conf,dev_update.zsh,nightly_audit.zsh). - 1 file was byte-identical
(
archive/update_mac.zsh.bak.20260706-041500). - 11 files were orphaned/superseded incident and historic scratch
files (
ticket.HEAD-3719L-39e9706.bak,ticket.WORKING-760L-*.bak,index.sqlite.bak-161525, etc.). RTTy's four tracked.bakfiles preserved untouched per recorded comment and active Claude work.
- 81 files were divergent obsolete snapshots of live files (e.g.
- Git Removal:
issues: removed 3 tracked.bakfiles (including staleindex.sqlite.bak-161525andbin/ticket.bak-20260830).sites/dev.ecs0.net: removedinfra/nginx/gateway.conf.bak-20260829-stitch-path.todo: removeditems/20260829-replicantdb-mcp-binary-answers-no-handshake.md.bak-20260830-0051.notes: removed 2 tracked.bakchangelog drafts insecondary-logs/rdmsm4x/.data: removed 7 tracked.bakfiles (products.json.bak-*,site_log.jsonl.bak-*).lib/domains: removed 3 tracked.bakfiles inarchive/bak-20260903/.scripts/macos: removed 5 tracked.bakfiles inDocuments_Scripts/.scripts: removed 22 tracked.bakfiles inarchive/andScripts (icloud)/.fleet: removed 51 tracked.bakfiles acrosstooling/host-scripts/,hosts/, andops/.
- Prevention via .gitignore:
- Added standard backup ignore patterns to
.gitignoreacross all 9 repositories:*.bak *.bak-* *.bak.* .*.bak-* *.orig
- Added standard backup ignore patterns to
- Verification Evidence:
- Verified with
git ls-filesacross all 9 repositories that exactly 0 tracked backup files remain. - Verified commits pushed to canonical bare store (
fleet/originongit.ecs0.net) and private GitHub mirror (backup):issues:2d43cf8,8b9812asites/dev.ecs0.net:f0c3539todo:679e251notes:ea7d795data:40db207lib/domains:477d99dscripts/macos:1ef1f83scripts:6c54393fleet:01fea5e
- Broadcasted resolution on fleet message bus
(
20260923-190123-63E7BC0A).
- Verified with
Outstanding Actions
- None. All tracked backup files resolved; repositories clean.