feat(backup): exclude checkpoints/ from backups (#16572)

Session-local trajectory cache — keyed by session hash, regenerated
per-session, won't port to another machine anyway. On a large install
this was multiple GB of pure noise in every zip.

Also adds a regression test for the pre-existing backups/ exclusion
so the two machine-local dirs share coverage.
This commit is contained in:
Teknium
2026-04-27 06:40:18 -07:00
committed by GitHub
parent ea3c5a14c3
commit a9033c9220
2 changed files with 14 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ _EXCLUDED_DIRS = {
".git", # nested git dirs (profiles shouldn't have these, but safety)
"node_modules", # js deps if website/ somehow leaks in
"backups", # prior auto-backups — don't nest backups exponentially
"checkpoints", # session-local trajectory caches — regenerated per-session,
# session-hash-keyed so they don't port to another machine anyway
}
# File-name suffixes to skip