[ec2] Script of rolling EBS volume snapshots?

Roger Marshall roger.marshall at aetopia.com
Mon Jun 22 23:28:32 BST 2009


On 22 Jun 2009, at 15:15, Jeffrey Greenberg wrote:

> I'm looking for a script to be run from cron to create EBS snapshots  
> on a periodic basic (daily or hourly), and then to remove them after  
> X number of days (say 10 days).   It would also be useful to be able  
> to move a weekly snapshot to S3...
>
> Is there such a script around?
>
> One challenge is that snapshots names are controlled by the ec2  
> snapshot code, rather than being meaningful to us...
> Another is, any good code for doing the date math to figure out if X  
> days have elapsed on a file or arbitrary date string.
>
> thanks,
>
> Jeffrey Greenberg
> http://www.jeffrey-greenberg.com
>
>
> -- 
> Ec2 mailing list
> Ec2 at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ec2

I found this to be a good starting point:

http://blog.nrgup.net/2009/04/amazon-ec2-mysql-script-for-gfs-snapshots/

It uses the SimpleDB service to keep track of snapshot expiration, and  
there are sample crontab entries to keep 1 day of hourly, 7 days of  
daily, 4 weeks of weekly and 1 year of monthly snapshots.

--
Roger Marshall

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/mailman/private/ec2/attachments/20090622/fca5f940/attachment.htm 


More information about the Ec2 mailing list