Home » Featured, Headline, Mobile Development, Software Development

How to clone Amazon S3 buckets efficiently

9 April 2014 No Comment

If you have more than 10,000 documents that you want to clone or move to another Amazon S3 bucket, then use s3s3mirror. It is much faster and cheaper.

Incase you want to clone fewer documents, use s3cmd command from s3tools.org.

Download and follow installation instructions on s3cmd github repo. Once successfully installed and configured, type the below command.

cp --recursive --acl-public s3://production_site/files/ s3://test_site/files/

Hope this saves you guys some time.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image