Moving some ZFS filesystems to the ‘trash’ and removing all their snapshots – sanoid
I recently discovered that you can delete all snapshot from a ZFS filesystem with a single command. It came to me via fortune: You can delete a range of ZFS snapshots (a-z) in multiple ways. The following will delete d and all earlier snapshots: zfs destroy mypool/data@%d To delete d and all later snapshots: zfs destroy mypool/data@d% To delete all dataset snapshots: zfs destroy mypool/data@% Make sure to let ZFS perform a dry […]
Moving some ZFS filesystems to the ‘trash’ and removing all their snapshots – sanoid Read More »