Moving the content index to BLAKE3
2026-11-09 · Why 0.3 stopped trusting size and mtime, and what it cost on a 1-vCPU box.
Up to 0.2, snapshotter decided whether a file changed by comparing size and modification time, the same
heuristic rsync uses by default. It is fast and it is wrong often enough to matter: a restored backup, a
touch in a deploy script or a tool that preserves mtimes on rewrite all fool it.
0.3 keeps a content index: one BLAKE3 hash per file, stored next to each snapshot. A file is linked to the previous
snapshot only if the hash matches. Renamed and moved files are found by hash too, so reorganising
/var/www no longer doubles the repository.
What it costs
| Source | Files | size+mtime | BLAKE3, cold | BLAKE3, warm |
|---|---|---|---|---|
| /etc | 1 912 | 0.2 s | 0.6 s | 0.3 s |
| /var/www (blog + photos) | 18 440 | 1.1 s | 21 s | 2.4 s |
| /home (one user) | 61 007 | 3.8 s | 74 s | 7.9 s |
"Warm" means files whose size and mtime did not change are trusted and not re-hashed, with a full re-hash every seventh run. That keeps hourly snapshots cheap and still catches the cases the old heuristic missed.