Michael Grote
8f2deeb484
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
Signed-off-by: Michael Grote <michael.grote@posteo.de>
8 lines
306 B
Bash
Executable file
8 lines
306 B
Bash
Executable file
#!/bin/bash
|
|
for i in $(zfs get -Ht snapshot userrefs | grep -v $'\t'0 | cut -d $'\t' -f 1 | cut -f1 -d @ | uniq -d) ; do
|
|
for j in $(zfs list -H -t snapshot "$i" | awk '{ print $1 }') ; do
|
|
for k in $(zfs holds -H "$j") ; do
|
|
echo sudo zfs release syncoid_pbs "$k" | grep "@"
|
|
done
|
|
done
|
|
done
|