my_backup — kopia cache relocation (C: → D:)
Section titled “my_backup — kopia cache relocation (C: → D:)”Background
Section titled “Background”Surfaced from System-Maintenance’s C: purge (2026-07-21): kopia’s local cache was 11.83GB on C:\Users\Admin\AppData\Local\kopia (kopia’s OS default). Talbot approved moving it to D: to free SSD space for OS/apps.
What was done
Section titled “What was done”- Kopia has no env var for cache dir (only
KOPIA_PASSWORD,KOPIA_CONFIG_PATH,KOPIA_LOG_DIRare env-driven). Cache dir is set per-repository, persisted in each repo’s ownkopia.config:kopia --config-file <repo>/kopia.config cache set --cache-directory=<path>. my_backuphas 2 repos:Kopia_Active→D:/bak/KopiaCache/Active,Kopia_Static→D:/bak/KopiaCache/Static. Nomy_backupcode change needed — setting lives in kopia’s own repo config, survives all future runs (uv/cron/Task Scheduler).- Verified live:
cache settriggers a full maintenance run (GC + compaction) against the new path — real-operation verification, not dry-run. Both new dirs populated immediately. - Docs updated in
my_backuprepo (README, LESSONS, CHANGELOG), committed0492612. - Old C: cache (~12GB, including 9 orphaned repo-ID folders from past reconnections) deleted by Talbot per escalated
Remove-Itemcommand — IT charter requires CEO approval for deletions. - Confirmed post-purge: C: went 11.8GB → 32GB → 59GB (aggressive app cleanup on top). Spot-check after next scheduled run confirmed
D:\bak\KopiaCache\grew, C: didn’t.
Result
Section titled “Result”Cache fully relocated to D:, C: reclaimed ~12GB+ from kopia alone. No ongoing action needed.