Files on disk
Coldpack keeps everything in one folder in your Library, and does not upload these files. The website edition checks for updates and verifies paid licenses online (see the privacy policy).
The support folder
~/Library/Application Support/Coldpack/
| Item | What it holds |
|---|---|
settings.json | Your settings. See Settings file. settings.json.bak appears when you overwrite a changed file. |
state.sqlite (and -wal, -shm) | The state database: files that wait for their cooldown, files that were compressed or are backing off, learned format classes, the scan position and counters. It does not keep a row per file of your disk. |
journal/ | One entry and one clone for each file that is being changed, and a lock file. Empty when no work is running. The folder is private to you. |
coldpack.log | What Coldpack did and why, including every moved cleanup item. Rotated above 5 MB, with one old file kept. |
finder/scope.json | The folders the Finder extension badges. See Finder badges. |
Journal clones and disk space
A clone costs no space until the original changes. During compression the clone pins the old blocks for a short time. When the work ends, the clone is deleted. If Coldpack stops in the middle, recovery cleans up at the next start, and also removes leftover clone and temp files that have no entry.
A damaged database
If the state database is damaged, Coldpack moves it to state.sqlite.corrupt-<time> and starts a new one. The scan then rebuilds the state. Nothing is lost that the files themselves do not hold.
Housekeeping
The database stays small: it limits its journal, caches little, and compacts itself. The daily housekeeping forgets rows for files that are gone, drops learned classes not used for 90 days, keeps at most 10,000 classes, and compacts the file. Compact Now in Settings, Advanced, or coldpack maintain --compact, runs it at once.
Run against a scratch folder
Set COLDPACK_SUPPORT_DIR to another folder. The whole process then keeps its state, journal, settings and log there. The scan scope is separate: use --include, or the include key of that folder's settings.json.
COLDPACK_SUPPORT_DIR=$(mktemp -d) coldpack watch --include ~/scratch
Start over
Quit the app, delete the support folder, and open the app again. Files that are already compressed stay compressed. Coldpack will estimate again from the start.