Automatically sync two Amazon S3 buckets, besides s3cmd?

novice18 picture novice18 · Sep 19, 2011 · Viewed 9.2k times · Source

Is there a another automated way of syncing two Amazon S3 bucket besides using s3cmd? Maybe Amazon has this as an option? The environment is linux, and every day I would like to sync new & deleted files to another bucket. I hate the thought of keeping all eggs in one basket.

Answer

Franz Fahrenkrog Petermann picture Franz Fahrenkrog Petermann · Oct 30, 2013

You could use the standard Amazon CLI to make the sync. You just have to do something like:

aws s3 sync s3://bucket1/folder1 s3://bucket2/folder2

http://aws.amazon.com/cli/