-
-
Save killerbees19/f452523be7e11443c90283a618041810 to your computer and use it in GitHub Desktop.
Find and delete multiple ZFS snapshots
This file contains 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