zfs_backup_dataset.sh: actually destroy last snapshot when done

This commit is contained in:
Alice Gaudon 2020-10-27 23:25:48 +01:00
parent acf82c432d
commit eb55c77f10

View File

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