Napp-it free, snapshot deletion automation. How to create a retention policy?

Hi guys,

I am having to regularly mass delete snapshots as the volume space is used up,  I have searched several forums but not found how to enable auto deletion of snapshots based upon percentage of volume space left. However, what would be best if I could enable an option to automatically delete snapshots based on a retention policy, say one month.

Any help on this would be greatly appreciated.

http://docs.oracle.com/cd/E23824_01/html/821-1448/gbciq.html#gbcya

Thanks , Ben
Ben CampbellIT User, Manager, DiplomatAsked:
Who is Participating?
 
MikeOM_DBACommented:
I am sure you can code a script that uses a combination of "zfs list  -o space" and "zfs list -r -t snapshot -o name,creation" to figure out the % used and which "oldest" snapshots to remove.

And schedule it with crontab.
;)
0
 
Ben CampbellIT User, Manager, DiplomatAuthor Commented:
Thanks for the advice I will look at trying this today :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.