From 682b3f107e13491dd8a666a33e7b66972d973f95 Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Sat, 4 Mar 2023 16:52:42 +0100 Subject: [PATCH] Disable auto-snapshot on target creation --- bashclub-zsync/usr/bin/bashclub-zsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashclub-zsync/usr/bin/bashclub-zsync b/bashclub-zsync/usr/bin/bashclub-zsync index ffddec1..04daa53 100644 --- a/bashclub-zsync/usr/bin/bashclub-zsync +++ b/bashclub-zsync/usr/bin/bashclub-zsync @@ -112,7 +112,7 @@ for name in "${syncvols[@]}"; do for part in $(echo $target/$(echo $name | cut -d'/' -f1) | sed "s/\// /g"); do if [ $($zfs list $prefix$part > /dev/null 2>&1 ; echo $?) -gt 0 ]; then log "Creating $prefix$part" - $zfs create -p $prefix$part + $zfs create -o com.sun:auto-snapshot=false -p $prefix$part fi prefix="$prefix$part/" done