wildcard charaters in destroying snapshots?

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

wildcard charaters in destroying snapshots?

Postby romanaOne » Fri Oct 09, 2015 5:56 am

I originally created my ZFS pool with PC-BSD and it made a heaps of automatic snapshots.

Code: Select all
>sudo zfs list -t snapshot

tank@auto-2015-09-20-23-55-00                    0      -   144K  -
tank@auto-2015-09-21-00-55-00                    0      -   144K  -
tank@auto-2015-09-21-01-45-00                    0      -   144K  -
tank@auto-2015-09-21-01-50-00                    0      -   144K  -
tank@auto-2015-09-21-01-55-00                    0      -   144K  -
tank@auto-2015-09-21-02-00-00                    0      -   144K  -
tank@auto-2015-09-21-02-05-00                    0      -   144K  -
tank@auto-2015-09-21-02-10-00                    0      -   144K  -
tank@auto-2015-09-21-02-15-00                    0      -   144K  -
tank@auto-2015-09-21-02-20-00                    0      -   144K  -
tank@auto-2015-09-21-02-25-00                    0      -   144K  -
tank@auto-2015-09-21-02-30-00                    0      -   144K  -
tank@auto-2015-09-21-02-35-00                    0      -   144K  -
tank@auto-2015-09-21-02-40-00                    0      -   144K  -
tank@auto-2015-09-21-02-45-00                    0      -   144K  -
.
.
.


Is there a way to destroy more than one, but not all in single command?
I discovered zfs destroy tank@% will destroy them all but what if I just wanted to delete the ones from September?
zfs destroy tank@auto-2015-09% does not work.

I'm not worried about space here, I just don't need this many snapshots and the horkage that results every time I do zfs -list gets annoying.
romanaOne
 
Posts: 5
Joined: Mon Oct 05, 2015 2:09 pm

Return to Absolute Beginners Section

Who is online

Users browsing this forum: Google [Bot] and 2 guests