To list your snapshots:

/usr/sbin/zfs list -H -t snapshot -o name

Then you could use that in a for loop:

for i in `/usr/sbin/zfs list -H -t snapshot -o name` ;
do
  echo "Destroying snapshot: $i"
  /usr/sbin/zfs destroy $i
done

The above would destroy all your snapshots.  You could put a grep on the end to 
select 
certain ones by a specific string...

For example:

/usr/sbin/zfs list -H -t snapshot -o name | grep "aug-16"

David
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to