dotfiles/scripts/zfs_get_holds.sh
Michael Grote 947024fcf1 chmod +x
Signed-off-by: Michael Grote <michael.grote@posteo.de>
2024-01-25 10:14:22 +01:00

2 lines
115 B
Bash
Executable file

#!/bin/bash
zfs get -Ht snapshot userrefs | grep -v $'\t'0 | cut -d $'\t' -f 1 | tr '\n' '\0' | xargs -0 zfs holds