How to retrieve data from Amazon AWS:S3 programmatically

I store all uploaded images at file system.

Once a week I backup all the data to aws:s3 . Let’s say that the url
where
the data is stored is

http://s3.amazonaws.com/foo/images.tar.gz

On my staging server I want to retrieve this data to verify that the
backup
is indeed good.

My question is how to retrieve images.tar.gz programmatically.

Similarly I also backup the production database data to s3 and I want to
retrieve that data programmatically too. This data is available as
http://s3.amazonaws.com/foo/production_dump_2007-09-04_00-00-14.sql.gz

Thanks.

I use the s3sync library to do similar tasks. Very easy to use…
check out the README for s3cmd
http://s3sync.net/wiki

Thanks. I’ll try that.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs