dotfiles/scripts/zfs_get_holds

3 lines
115 B
Text
Raw Permalink Normal View History

2024-01-25 09:53:09 +01:00
#!/bin/bash
zfs get -Ht snapshot userrefs | grep -v $'\t'0 | cut -d $'\t' -f 1 | tr '\n' '\0' | xargs -0 zfs holds