45Drives Knowledge Base
KB450433 - Automated ZFS Replication/Backup in Houston UI
https://knowledgebase.45drives.com/kb/kb450433-automated-zfs-replication-backup/

KB450433 - Automated ZFS Replication/Backup in Houston UI

Posted on July 27, 2021 by Austin Axworthy


Scope/Description

Prerequisites

Steps

Installing Dependencies

apt install mbuffer
apt purge zfs-auto-snapshot

systemctl restart znapzend


dnf install mbuffer

systemctl restart znapzend

Configuring Snapshots on ZFS Dataset

Make sure to restart the znapzend service after any change has been made to snapshot tasks

Configuring Snapshots on Separate Local ZFS Dataset

Make sure to restart the znapzend service after any change has been made to snapshot tasks

Configuring Snapshots on Remote ZFS Dataset

ssh-keygen (You'll be prompted with 3 questions, just press enter on all 3 until you're returned to the command prompt)

ssh-copy-id root@{Local-IP} (Local Host, You will be asked if you want to continue connecting, say "yes" and then enter the root password.)

ssh-copy-id root@{Remote-IP} (External Host)

Make sure to restart the znapzend service after any change has been made to snapshot tasks

Verification

Troubleshooting

zfs list -H -o name -t snapshot | xargs -n1 zfs destroy