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
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
|