Last active
November 5, 2024 07:35
-
-
Save jstutters/ed86afe71d6ec0599a8c 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