mirror of
https://git.bashclub.org/bashclub/zsync.git
synced 2024-11-25 03:15:18 +01:00
Fix it again
This commit is contained in:
parent
2e9ae9c965
commit
2fcb72de5c
@ -133,6 +133,11 @@ log "$exclude_list"
|
|||||||
|
|
||||||
for name in "${syncvols[@]}"; do
|
for name in "${syncvols[@]}"; do
|
||||||
log "Replicate $name"
|
log "Replicate $name"
|
||||||
|
if [[ $($ssh $sshcipher $sshport $source zfs get type -o value -H $name) == "filesystem" ]]; then
|
||||||
|
mp=-xmountpoint
|
||||||
|
cm=-xcanmount
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $($ssh $sshcipher $sshport $source "zfs list -H -t snapshot -o name -S creation $name 2>/dev/null | grep -E \"$snapshot_filter\" | wc -l | tr -d ' '") -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 | tr -d ' '") -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