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.

I am not a Linux admin, although I wish I was, and I have seen these questions

And this suggestion http://alestic.com/2009/09/ec2-consistent-snapshot

I tried using command line + crontab (the command line works, but crontab for some reason, doesn't)

But I'm still pretty lost, all I want is an automated, rolling backup of my amazon EC2 (EBS) data

(by rolling I mean keep 3-4 weeks back, but delete old snapshots as new ones come for cost control)

And as things usually go, if there is something that is hard and painful, someone creates a solution for it.

My question is simple, is there a way using a tool like Puppet to do it without a painful learning curve?

(or via other tools like http://ylastic.com)

If yes, how?

share|improve this question
1  
Take a look at Skeddly skeddly.com for automated, rolling EBS snapshots. (Disclaimer, I am associated with this product) –  Matt Houser Oct 1 '12 at 18:45
    
@MattHouser please put this as an answer, it fits the question (I modified it to be less specific) and exactly what I was looking for –  Eran Medan Oct 2 '12 at 1:41
    
I created PHP based script and easy to install instruction. It will create backups and delete old. Fully configurable. serverfault.com/questions/237246/… –  Sergey Romanov Mar 26 at 16:31
add comment

3 Answers

up vote 2 down vote accepted

Take a look at Skeddly for automated, rolling EBS snapshots.

Disclaimer, I am associated with this product

share|improve this answer
    
Exactly what I was looking for, thanks –  Eran Medan Oct 2 '12 at 16:08
add comment

Puppet isn't a backup solution, although you could use Puppet to deploy, configure, and maintain a backup solution. This could be as simple as scripts that use the EC2 API command line tools and cron (not sure what problem you had here, but it certainly could be done this way). Or use the AWS SDK for whatever programming language you prefer.

It sounds like Ylastic or a service for this would suit you best. Ylastic works for us. We use EC2 tags for volumes we want to snapshot and Ylastic handles the rest (including rolling backups).

share|improve this answer
add comment

Create a script which uses "ec2-consistent-snapshot" and add it to crontab to run once a day (or any suitable interval).

To remove old snapshots use "ec2-describe-snapshots" and check the date to remove old snapshots.

share|improve this answer
    
yes, tried it, no matter what I do, the crontab doesn't run, and as I said I'm not a linux Admin, and simply couldn't find out why (checked the logs, tried different users / paths, nothing), I know that with enough time I will figure it out, but I was looking for something that will spare me that... –  Eran Medan Oct 2 '12 at 1:40
    
Where are you setting the needed env variables? Have you checked so all env variables that is needed to run ec2 cmd tools are set when rc.local is run. I usually create a script file which sets all needed env variables and then lets rc.local call that script. –  horte Oct 2 '12 at 7:47
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.