snapshotter

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

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, renames shown as renames
find PATTERNWhich snapshots contain a file
prune [--dry-run]Apply retention rules
checkVerify the content index against the files

Cron

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