diff --git a/proxmox/proxmox-del-fleece-datasets.sh b/proxmox/proxmox-del-fleece-datasets.sh new file mode 100644 index 0000000..7c10e7e --- /dev/null +++ b/proxmox/proxmox-del-fleece-datasets.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e +set -u + +zfs list |grep fleece + +echo "$(date) - About to destroy the above fleece datasets - ^C to backout or Enter to proceed" +read + +zfs-killsnaps.sh fleece + +for fd in $(zfs list |grep fleece |awk '{print $1}'); do + echo "$fd" + zfs destroy "$fd" +done + +zfs list |grep fleece +exit;