From 39d1fd38c1edd52f45b44707beabe32e3a20900d Mon Sep 17 00:00:00 2001 From: Attie Grande Date: Fri, 5 Jan 2018 21:54:06 +0000 Subject: [PATCH] added ability to skip datasets... simply set syncoid:no-sync=true --- syncoid | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/syncoid b/syncoid index 6c569b2..8adaa87 100755 --- a/syncoid +++ b/syncoid @@ -183,6 +183,11 @@ sub syncdataset { if ($debug) { print "DEBUG: syncing source $sourcefs to target $targetfs.\n"; } + if (getzfsvalue($sourcehost,$sourcefs,$sourceisroot,'syncoid:no-sync') eq 'true') { + print "Skipping dataset (syncoid:nosync=true): $sourcefs...\n"; + return 0; + } + # make sure target is not currently in receive. if (iszfsbusy($targethost,$targetfs,$targetisroot)) { warn "Cannot sync now: $targetfs is already target of a zfs receive process.\n";