I see topics about backing up the TrueNAS machine to another site machine. I also see topics about backing up Linux machines using btrfs or other non-ZFS formats. I don’t see a whole lot about backing up from a Linux distribution that is also using a ZFS rootfs, automated. I found some things using sanoid and similar, but problems with those things. Not to mention, they don’t easily automate pruning the snapshots on the target side.
Does anyone know a good procedure for installing something on an Arch Linux machine, AUR is acceptable as a source of packages, which can automate timed atomic snapshots of selected datasets on the desktop, and send them over SSH to a TrueNAS Scale machine, to write to a dataset there? Preferably with the ability to prune both sides.
Wow, awesome, you did it entirely with a pull method from TrueNAS itself, with the only setup on the source machine(s) being something to create the snapshots. I’ll go ahead and mark this as a solution once I’ve managed to recreate it.
…and adding a SSH key to authorized_keys. But yes, zfSnap handles the snapshots on the host machine (including pruning them), and entering the naming schema into the TrueNAS task allows it to prune appropriately as well.
Pulling to a centralized backup server is always my method. Keeps from from having to log in to many different systems. I log in to one system and configure all my backups there instead of the other way around.