Simple example of removing a datasets snapshots.

This commit is contained in:
cyteen 2026-02-24 23:15:16 +00:00
parent 105cac024a
commit 735cee9da6
1 changed files with 8 additions and 0 deletions

8
utils/zfs/remove-snap.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
POOL_NAME=${1}
for snap in $(zfs list -rt snap -Ho name "${POOL_NAME}"); do
echo "Destroying: $snap"
zfs destroy "$snap"
done