Documentation
Configuration
# /etc/snapshotter.conf
repo = /srv/backups
sources = /etc /var/www /home
exclude = *.tmp, node_modules, .cache
keep = hourly=24, daily=7, weekly=4, monthly=6
hash = blake3 # or: mtime (0.2 behaviour, faster, less exact)
Commands
| Command | What it does |
init DIR | Create a repository |
take [PATH…] | Take a snapshot of the configured or given paths |
ls | List snapshots with added and deduplicated size |
diff A B | Files changed between two snapshots, renames shown as renames |
find PATTERN | Which snapshots contain a file |
prune [--dry-run] | Apply retention rules |
check | Verify the content index against the files |
Cron
0 * * * * root snapshotter take && snapshotter prune