dotfiles/scripts/zfs_get_holds.sh

3 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