Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.15 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.15 KB

About

ZFSREP automates the replication and management of ZFS volumes (raw) or filesystems (cooked) at block level using ZFS 'send' and 'recv'. Set it up and just schedule it via 'cron' to run as often as you wish.

Essentially this gives you the same functionality as Netapp SnapVault between Netapp arrays, but here we do it on the host level so it is 100% storage agnostic.

Requirements

Both the source and destination pools and volumes/filesystems need to already exist. ZFSREP will take care of taking initial snapshots on the SRC host, so ideally there should be no existing snapshots on any pools/volumes/filesystems that you want ZFSREP to replicate. SSH public key auth must be enabled from SRC host to DST host.

zfsrep.conf file format: (a single volume/fs per line)

poolname/fsname:max_src_snap_to_keep:max_dst_snaps_to_keep

or

poolname/volumename:max_src_snap_to_keep:max_dst_snaps_to_keep

Example:

mybigdatapool/data1:2:5 mybigdatapool/data2:2:5 mylogpool/archive:1:10

Important Note:

It is NOT permitted to have a snapshot keep count of zero(0), else incremental snapshots will NOT work!!!