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
Any reason you can't use the "snap sched" command for this?
snap sched volname 0 3 0
This takes a snapshot at midnight and keeps at most 3.
If midnight isn't suitable you can configure the hourly option to take one hourly per day and keep 3. Suppose you want 18:00
snap sched volname 0 0 3@18
Steve Losen scl@virginia.edu phone: 434-924-0640
University of Virginia ITC Unix Support