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."