Dan's notes on homelabs, Linux, keyboards and old hardware

Sections Tags Things I read Hardware in the rack
  • 3x ThinkCentre M720q (i5-8500T), Proxmox
  • 4 TB ZFS mirror, NVMe + SATA SSD
  • 8-port managed switch
  • ISP router
  • smart plug counting watts

Retired: four-bay NAS (2017-2026), Raspberry Pi DNS (now on the balcony).

Snapshots are not backups: restic to my brother's place

Posted 3 October 2026, tagged storage, linux

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

  1. 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'.
  2. A check that actually reads data, a slice every week:
    restic check --read-data-subset=5%
  3. 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.

Older: ZFS snapshots that I actually restore from
Newer: Lubing linear switches: was it worth two evenings?

Back to all posts