From 7c5fd18c4e59b45b62de53990f8471d2eda2d45c Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Thu, 12 Oct 2023 20:08:30 +0200 Subject: [PATCH] Remove dead code --- bashclub-zsync/usr/bin/bashclub-zsync | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bashclub-zsync/usr/bin/bashclub-zsync b/bashclub-zsync/usr/bin/bashclub-zsync index 69e3b0f..cdfc0dc 100644 --- a/bashclub-zsync/usr/bin/bashclub-zsync +++ b/bashclub-zsync/usr/bin/bashclub-zsync @@ -171,12 +171,6 @@ for name in "${syncvols[@]}"; do 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) 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 if [[ $debug == "-v" ]]; then log "[DEBUG] $name - Start incremental replication"; fi