Anyone have any go-to choice for #FreeBSD scripts to handle zfs-send of snapshots for backup purposes? I have a couple of hosts using zfs and already have snapshots set up, but I would like to have the most recent snapshot sent to another host (and older snapshots to be pruned from that remote host).

Doesn't need to be anything super-fancy beyond that, bonus points for just integrating with periodic(8)

@jamesoff

I use zrepl to do both the local and remote pruning of snapshots (e.g. hourly for a day, daily for a week, and so on) and syncing. It is quite configurable.

@david_chisnall @jamesoff I'm now reading https://zrepl.github.io/configuration/snapshotting.html

Any other suggested reading?

I just created a six disk ZFS raidz2 but I don't know much yet!

Taking Snaphots — zrepl documentation

@shapr @jamesoff

That’s all I read to configure zrepl. It was sufficient client for most things I did.

My NAS backs itself up also using zrepl, but where the remote disk is a second pool mounted over iSCSI (over WireGuard) from a remote machine (where it’s backed by a zvol), with GELI encryption underneath so the remote machine can’t see the contents of the backups. The remote machine also uses zrepl to snapshot the zvol, so I can roll back the backup to earlier versions if the NAS starts writing nonsense.

The iSCSI bit of this required a bit more config, but there was a helpful FreeBSD Journal article with some nice examples.