zfs_backup_dataset.sh: actually destroy last snapshot when done
This commit is contained in:
parent
acf82c432d
commit
eb55c77f10
@ -64,7 +64,6 @@ echo "Saving new snapshot in tracking folder..."
|
|||||||
echo -e $SNAPSHOT > $last_snapshot_file
|
echo -e $SNAPSHOT > $last_snapshot_file
|
||||||
|
|
||||||
echo "Destroying last snapshot..."
|
echo "Destroying last snapshot..."
|
||||||
# zfs destroy $LAST_SNAPSHOT
|
zfs destroy $LAST_SNAPSHOT || exit 1
|
||||||
echo "(dry)"
|
|
||||||
|
|
||||||
echo "Backup finished."
|
echo "Backup finished."
|
||||||
|
Loading…
Reference in New Issue
Block a user