除了s3cmd之外,是否自动同步两个Amazon S3存储桶? [英] Automatically sync two Amazon S3 buckets, besides s3cmd?

查看:367
本文介绍了除了s3cmd之外,是否自动同步两个Amazon S3存储桶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了使用s3cmd之外,还有另一种自动同步两个Amazon S3存储桶的方法吗?也许亚马逊可以选择吗?环境是linux,每天我都想同步新&删除的文件到另一个存储桶.我讨厌把所有鸡蛋都放在一个篮子里的想法.

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.

推荐答案

您可以使用标准的Amazon CLI进行同步. 您只需要执行以下操作即可:

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/

这篇关于除了s3cmd之外,是否自动同步两个Amazon S3存储桶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆