syncoid to TrueNAS
In my homelab, I have 2 NAS systems:
- Linux (Debian)
- TrueNAS Core (based on FreeBSD)
On my Linux box, I use Jim Salter’s sanoid to periodically take
snapshots of my ZFS pool. I also want to have a proper backup of the whole
pool, so I use syncoid to transfer those snapshots to
another machine. Sanoid
itself is responsible only
for taking new snapshots and pruning old ones you no longer care about. For
example, you might set up a policy in sanoid
to take a day’s worth of hourly
snapshots and a year’s worth of monthly snapshots. That means, that sanoid
will take a snapshot every hour, but – if executed with --prune-snapshots
will delete all the hourlies (hourly snapshots in sanoid
’s lingo) that are
older than a day, monthlies that are older than a year and so on.