From 2fcb72de5c914c2082bbda29dd9e0d361ac1d3de Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Wed, 10 May 2023 17:57:53 +0200 Subject: [PATCH] Fix it again --- bashclub-zsync/usr/bin/bashclub-zsync | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bashclub-zsync/usr/bin/bashclub-zsync b/bashclub-zsync/usr/bin/bashclub-zsync index 76948a4..3123bd0 100644 --- a/bashclub-zsync/usr/bin/bashclub-zsync +++ b/bashclub-zsync/usr/bin/bashclub-zsync @@ -133,6 +133,11 @@ log "$exclude_list" for name in "${syncvols[@]}"; do 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 IFS=$' ' if [ $($zfs list -H $target/$name > /dev/null 2>&1 ; echo $?) -gt 0 ]; then