added ability to skip datasets... simply set syncoid:no-sync=true

This commit is contained in:
Attie Grande 2018-01-05 21:54:06 +00:00
parent d1153a244f
commit 39d1fd38c1
1 changed files with 5 additions and 0 deletions

View File

@ -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";