I am sure I'm not the only one who would like the "Retention Count" on the Protection Policy to be replaced with "Snapshot Age" instead?
We do remote backup for customers, so we setup a Protection Policy like shown here... and this works just fine as long as you do not do too many manual started backupjobs, because if you are testing somthing on a datastore and run day 10 test snapshots with the daily snapmirror label, just just "cut off" 10 days wort of snapshots at the "far end"... which most likely isn't what you want... but was is even worse is if you have setup SMVI on a datastore with the daily snapmirror label... then "someone" sets up a SM for SQL up where the databases are located on the same datastore... and if your snapmirror label match the "daily" of the SMVI, just just cut your retention in half or worse of you also have logs there... As far as I know this problem has not yet been addressed ? One could set the rention count to 1024 and write some elaburate snapshot delete script, which just isn't fun to have running... or may you could setup the "SnapLock Rention Period" to 356 days... Which still leaves you with the deletion problem after the 365 days... this could be fixed if NetApp would just introduce an age based rention... But maybe I have missed some other possibilities ?
#Snapshot retention based on time and not number?
1 messages · Page 1 of 1 (latest)
Yeah, applications like SnapCenter have supported this for ages, but ONTAP is stuck on snapshot count. The scripted solution is probably the best you can do at the moment if you're not using a backup application that can do time-based retention
I am use the SnapCenter backup application 😉 But you are right the issue could also be fixed by SnapCenter supporting age based retention on the snapmirror destinations (like Veeam does a poor job at)... is there an official powershell script for deleting snapshots based on name+retention? I think I wrote one that deleted based on retention and snapmirror label... but seems like a hacky solution...
wait.. in the past, SnapCenter was able to do retention based on days instead of number of snapshots. Is that no longer the case? (I admit I haven't used SnapCenter for a while now)
Yep byt only applies to the primary snapshots... it's the snapmirror destinations that are the problem as they typically rely on the snapmirror label and a protection policy on the destination where only a retention count is possible...
ah okay now I get it. In that case I think a powershell one-liner is the only working solution currently