[英]AWS S3 sync command from one bucket to another
I want to use the AWS S3 sync command to sync a large bucket with another bucket.我想使用 AWS S3 同步命令将一个大存储桶与另一个存储桶同步。 I found this answer that say that the files from the bucket synced over the AWS backbone and are not copied to the local machine but I can't find a reference anywhere in the documentation.我发现这个答案说存储桶中的文件通过 AWS 骨干网同步并且没有复制到本地机器,但我在文档中的任何地方都找不到参考。 Does anyone has a proof for this behavior?有没有人有这种行为的证据? any formal documentation that explains how it works?任何解释其工作原理的正式文件?
I tried to find something in the documentation but nothing there.我试图在文档中找到一些东西,但什么也没有。
To learn more about the sync command, check CLI docs .要了解有关 sync 命令的更多信息,请查看CLI 文档。 You can directly refer to the section named -您可以直接参考名为 -
Sync from S3 bucket to another S3 bucket从 S3 存储桶同步到另一个 S3 存储桶
The following sync command syncs objects to a specified bucket and prefix from objects in another specified bucket and prefix by copying s3 objects.以下同步命令通过复制 s3 对象将对象从另一个指定的存储桶和前缀中的对象同步到指定的存储桶和前缀。 An s3 object will require copying if one of the following conditions is true:如果满足以下条件之一,s3 object 将需要复制:
- The s3 object does not exist in the specified bucket and prefix destination.指定的存储桶和前缀目标中不存在 s3 object。
- The sizes of the two s3 objects differ.两个 s3 对象的大小不同。
- The last modified time of the source is newer than the last modified time of the destination.源的最后修改时间比目标的最后修改时间更新。
Use the S3 replication capability if you only want to replicate the data that moves from bucket1 to bucket2.如果您只想复制从 bucket1 移动到 bucket2 的数据,请使用 S3 复制功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.