Remove dead code
This commit is contained in:
parent
31d1843e88
commit
7c5fd18c4e
@ -171,12 +171,6 @@ for name in "${syncvols[@]}"; do
|
|||||||
log "Start initial replication: $snap => $target/$(echo $name | cut -d'/' -f1)"
|
log "Start initial replication: $snap => $target/$(echo $name | cut -d'/' -f1)"
|
||||||
$ssh $ssh_ipher $sshport $source "zfs send -w -p $debug $snap" | $zfs receive $mp $cm -x $tag -x com.sun:auto-snapshot $debug -dF $target/$(echo $name | cut -d'/' -f1)
|
$ssh $ssh_ipher $sshport $source "zfs send -w -p $debug $snap" | $zfs receive $mp $cm -x $tag -x com.sun:auto-snapshot $debug -dF $target/$(echo $name | cut -d'/' -f1)
|
||||||
done
|
done
|
||||||
else
|
|
||||||
log "[DEBUG] $target already exists, check if com.sun:auto-snapshot is disabled"
|
|
||||||
if [[ $($zfs get -H -o value,source com.sun:auto-snapshot $target) != "false local" ]]; then
|
|
||||||
log "[DEBUG] com.sun:auto-snapshot is enabled on $target - disabling..."
|
|
||||||
$zfs set com.sun:auto-snapshot=false $target
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $debug == "-v" ]]; then log "[DEBUG] $name - Start incremental replication"; fi
|
if [[ $debug == "-v" ]]; then log "[DEBUG] $name - Start incremental replication"; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user