Jason J. W. Williams wrote:
Hi Mark,
Thank you very much. That's what I was kind of afraid of. Its fine to
script it, just would be nice to have a built in function. :-) Thank
you again.
Note, when writing such a script, you will get the best performance by
destroying the snapshots in order from oldest to newest. (And FYI, 'zfs
destroy -R' does the snapshot destroys in this order too.)
--matt
Best Regards,
Jason
On 5/11/07, Mark J Musante <[EMAIL PROTECTED]> wrote:
On Fri, 11 May 2007, Jason J. W. Williams wrote:
> Is it possible (or even technically feasible) for zfs to have a
"destroy
> to" feature? Basically destroy any snapshot older than a certain date?
Sorta-kinda. You can use 'zfs get' to get the creation time of a
snapshot. If you give it -p, it'll provide the seconds-since-epoch time
so, with a little fancy footwork, this is scriptable.
Regards,
markm
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss