Change logging
This commit is contained in:
parent
da25107a83
commit
d7eccfd4fc
@ -125,7 +125,7 @@ log "$exclude_list"
|
|||||||
|
|
||||||
|
|
||||||
for name in "${syncvols[@]}"; do
|
for name in "${syncvols[@]}"; do
|
||||||
if [[ $debug == "-v" ]]; then log "Replicate $name"; fi
|
log "Replicate $name"
|
||||||
if [[ $($ssh $sshcipher $sshport $source "zfs list -H -t snapshot -o name -S creation $name 2>/dev/null | grep -E \"$snapshot_filter\" | wc -l") -gt 0 ]]; then
|
if [[ $($ssh $sshcipher $sshport $source "zfs list -H -t snapshot -o name -S creation $name 2>/dev/null | grep -E \"$snapshot_filter\" | wc -l") -gt 0 ]]; then
|
||||||
IFS=$' '
|
IFS=$' '
|
||||||
if [ $($zfs list -H $target/$name > /dev/null 2>&1 ; echo $?) -gt 0 ]; then
|
if [ $($zfs list -H $target/$name > /dev/null 2>&1 ; echo $?) -gt 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user