snapshotter

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

CommandWhat it does
init DIRCreate a repository
take [PATH…]Take a snapshot of the configured or given paths
lsList snapshots with added and deduplicated size
diff A BFiles changed between two snapshots
pruneApply retention rules

Cron

0 * * * *  root  snapshotter take && snapshotter prune