From eb55c77f104e12a974d4374c531cd64759eb32f4 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 27 Oct 2020 23:25:48 +0100 Subject: [PATCH] zfs_backup_dataset.sh: actually destroy last snapshot when done --- zfs_backup_dataset.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zfs_backup_dataset.sh b/zfs_backup_dataset.sh index d538d26..e178cec 100755 --- a/zfs_backup_dataset.sh +++ b/zfs_backup_dataset.sh @@ -64,7 +64,6 @@ echo "Saving new snapshot in tracking folder..." echo -e $SNAPSHOT > $last_snapshot_file echo "Destroying last snapshot..." -# zfs destroy $LAST_SNAPSHOT -echo "(dry)" +zfs destroy $LAST_SNAPSHOT || exit 1 echo "Backup finished."