ZFS send recv backups and switching the master
We have several NAS boxes. In normal operation, one is the live or master or writeable copy (A) , and another is the backup (B) . Nightly we use zfs send/receive to back up the master to the backup. A script to do this was developed at Klara Systems and given to us.
We needed to expand this concept to support the case where we want to swap out our master A for a new NAS box C. So we need to set up copying A -> B -> C, then on a red flag day swap out C for A and then after that back up C to B.
The scripts we use for this are under zfs_replication_bin . We added extensive POD documentation to replication_ABC.sh.