Merge pull request #564 from Efiartes/zfs_destroy_snapshot

Added zfs_destroy_snapshot functionality
This commit is contained in:
Christer Edwards
2023-02-15 07:48:42 -07:00
committed by GitHub

View File

@@ -43,6 +43,14 @@ for _jail in ${JAILS}; do
done
}
zfs_destroy_snapshot() {
for _jail in ${JAILS}; do
info "[${_jail}]:"
zfs destroy -r "${bastille_zfs_zpool}/${bastille_zfs_prefix}/jails/${_jail}"@"${TAG}"
echo
done
}
zfs_set_value() {
for _jail in ${JAILS}; do
info "[${_jail}]:"
@@ -101,6 +109,10 @@ snap|snapshot)
TAG=$2
zfs_snapshot
;;
destroy_snap|destroy_snapshot)
TAG=$2
zfs_destroy_snapshot
;;
df|usage)
zfs_disk_usage
;;