Fix zfs-auto-snapshot.sh snap delete issue

This commit is contained in:
2026-07-22 11:38:05 +02:00
parent 8bfd4f55d8
commit 438ecbfd9b
+3 -3
View File
@@ -20,10 +20,10 @@ TS=$(date '+%s')
ZFS=$(which zfs)
CMD="$ZFS snapshot ${DATASET}@snap${TS}"
echo "[${DATE}] $CMD"
$CMD 2>&1 > /dev/null
$CMD 2>&1
ZFS_PRUNE_SNAPSHOTS=$(which zfs-prune-snapshots)
CMD="$ZFS_PRUNE_SNAPSHOTS -p 'snap' $EXPIRATION $DATASET"
CMD="$ZFS_PRUNE_SNAPSHOTS -p snap $EXPIRATION $DATASET"
echo "[${DATE}] $CMD"
$CMD 2>&1 > /dev/null
$CMD 2>&1