-
-
Save xrishox/09e906196167beb7967ff8efc873abd8 to your computer and use it in GitHub Desktop.
Find and delete multiple ZFS snapshots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 echo | |
# zfs list -t snapshot -H -o name | grep "201509[0-9].*" | xargs -n1 zfs destroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment