If you use snap sched you can do exactly that, except your snapshots will be named daily0 daily1 and daily2, rather than the ss-YYYYMMDDHHmm you currently use. If you can live with that your ok.
If the naming convention is important for some reason then you will need to develop a host based script to handle it. Unfortunately, I don't have one available but someone else might.
Paul Brosseau Systems Engineer N/A East - Chesapeake Dist. 301-351-5165 Mobile Paul.Brosseau@netapp.com mailto:Paul.Brosseau@netapp.com www.netapp.com http://www.netapp.com
From: Daniel Keisling [mailto:daniel.keisling@austin.ppdi.com] Sent: Tuesday, August 05, 2008 11:14 AM To: toasters@mathworks.com Subject: Automatically delete snapshots based on number and not space availability
Greetings,
I take a daily snapshots (named ss-YYYYMMDDHHmm) of several volumes on my filers. I would like to automatically delete the oldest snapshot (assuming it's not busy) when a certain number of snapshots are present in the volume (ie, only keep the latest 3 snapshots). Is this possible? If not, does anyone have any scripts where it can be done from a host?
TIA,
Daniel
______________________________________________________________________ This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient or a person responsible for delivering this transmission to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner.