ansitest/proxmox/proxmox-del-fleece-datasets.sh
2024-05-11 12:14:23 -06:00

20 lines
303 B
Bash

#!/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;