Documentation
Install
curl -LO https://snapshotter.org/dl/snapshotter-linux-amd64 install -m 755 snapshotter-linux-amd64 /usr/local/bin/snapshotter
Binaries are not published yet while the on-disk index format settles; build from source in the meantime.
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
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 |
prune | Apply retention rules |
Cron
0 * * * * root snapshotter take && snapshotter prune