snapshotter

On-disk format

/srv/backups/
  .snapshotter/          repository metadata (format version, lock)
  2026-11-21T03:00/      one directory per snapshot, ISO time in UTC
    etc/ var/www/        the sources, unchanged files hard-linked to the previous snapshot
    .index.b3            content index: path, size, mtime, BLAKE3
  2026-11-22T03:00/
  latest -> 2026-11-22T03:00
2026-11-21a.confphoto.jpg 2026-11-22a.conf (new)photo.jpg inode 81723

Unchanged files share one inode across snapshots, so deleting an old snapshot frees only what no newer snapshot uses. The index is rebuilt by snapshotter check --rebuild if it is ever lost; the snapshots themselves never depend on it.