Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Anyone knows of a good way to automatically purge old EBS snapshots?

We have a cron script backing up the whole instance from inside, via EC2 API snapshots, but the snapshots tend to accumulate.

I thought of using the EC2 API for listing and erasing "older then X" snapshots, but perhaps there is already some solution/script for this which will help me not re-invent the wheel?

share|improve this question
1  
See this question - it is a bit old, but the basic ideas still apply. (I still use the script I mentioned in one of the answers there - and it has been working without issue). –  cyberx86 Feb 7 '12 at 18:57
    
Thanks, this looks exactly what needed. –  SyRenity Feb 7 '12 at 19:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.