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
the data is stored is

On my staging server I want to retrieve this data to verify that the
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


I use the s3sync library to do similar tasks. Very easy to use…
check out the README for s3cmd

Thanks. I’ll try that.