The snapshot post got two emails saying "snapshots are not backups". They are right, and I do have something for that, I just had not written it down. Snapshots cover "I deleted the wrong folder". This covers "the flat burned down" and "I typed zfs destroy with the wrong argument".
Setup
The offsite end is a Raspberry Pi 4 with a 4 TB USB disk at my brother's place, about 300 km away. It runs nothing but SSH. On my side restic runs nightly in a container on the cluster, with the NAS shares mounted read-only.
export RESTIC_REPOSITORY=sftp:backup@brother-pi:/srv/restic/dan
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic init # once
restic backup /mnt/nas/photos /mnt/nas/documents --exclude-caches
restic forget --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --prune
Only photos and documents go offsite, about 900 GB. Films and the ISO collection can be downloaded again, so they do not justify the upload. At 40 Mbit/s up the first run took a bit over two days; I left it in a tmux session and tried not to look. Nightly runs take a few minutes now, because restic only sends chunks it has not seen before.
Things that matter more than the tool
- The repository is encrypted, and without the password the data is gone. The password is in my password manager and on paper in a drawer at my parents'.
- A check that actually reads data, a slice every week:
restic check --read-data-subset=5% - Restore something once in a while. Last weekend I restored one year of photos to a scratch directory and compared checksums: 41 GB, most of an evening over the internet, all of it matched.