Amazon S3 for log backups?
October 22, 2009 10:04 PM
Subscribe
I'm looking for a step by step recipe for log rotation from a web server to Amazon S3.
Caveat: I am an utter newbie to Amazon S3 and EC2.
I currently have a backup process that works well. It's a cronjob that copies server logs on a nightly basis from an external machine that I do not control to a linux VPS I do control via scp.
The cost of storage is killing me (I keep > 1 years worth of logs) so I'd like to use Amazon S3 as the destination for the logs, while keeping this as unixy as possible.
What are the steps I need to take to do this? Baby steps, please. I'm new to Amazon's S3 and EC2.
I would prefer something like a nightly job where I run:
scp user@example.com:logfile user2@amazons3domain.com:destination
or the rsync equivalent.
I do not need more than 99% reliability. Simple is best. Installing new software on the outside machine is difficult, so a standard scp or rsync method preferred.
I can install software on one of my servers, but I presume it would not be involved in the transfer as I'd take a 3x bandwidth hit (outside machine to mine, mine to s3 x 2: upload from my side, download from theirs)
Over time, I will have more than one outside machine to back up. For now, it's just one.
posted by anonymous to computers & internet (7 comments total)
posted by nicwolff at 12:32 AM on October 23, 2009