Thanks for all the quick responses. The available solutions are
a) Snapvault
b) Protection Manager
c) Scripting, which I chose to do (using snapdrive):
$SD snap create -hostvol $DB_DEVICE -snapname snap.0.tmp
if [ $? -eq 1 ] then echo "Snapshot creation returned non-zero errorlevel!" exit 1 fi
$SD snap delete $SYSTEM:/vol/$NA_VOL:snap.$RETENTION
while [ $RETENTION -gt 0 ] do ((TMP_RET=$RETENTION-1)) $SD snap rename $SYSTEM:/vol/$NA_VOL:snap.$TMP_RET snap.$RETENTION ((RETENTION=$RETENTION-1)) done
$SD snap rename $SYSTEM:/vol/$NA_VOL:snap.0.tmp snap.0
I would love if the filer's 'snap autodelete' could have the functionality in the future.
Daniel
________________________________
From: Daniel Keisling Sent: Tuesday, August 05, 2008 10: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.