简体   繁体   English

从一个存储桶到另一个存储桶的 AWS S3 同步命令

[英]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.

相关问题 将文件从一个帐户中的 AWS S3 存储桶复制到 terraform/python 中另一个帐户中的存储桶 - copy files from AWS S3 bucket in one account to bucket in another account in terraform/python 将 S3 存储桶从一个 AWS 账户复制到另一个 AWS 账户在传输过程中是否安全? - Is copying an S3 bucket from one AWS account to another AWS account secure in transit? 是否可以在不使用存储桶策略的情况下将 s3 存储桶内容从一个存储桶复制到另一个帐户 s3 存储桶? - is it possible to copy s3 bucket content from one bucket to another account s3 bucket without using bucket policy? 将 json 文件从一个 s3 存储桶复制到另一个 s3 存储桶时,无法识别 Json 文件? - Json file is not recognising when copy json files from one s3 bucket to another s3 bucket? 从一个 s3 存储桶中获取 zip 个文件,将它们解压缩到另一个 s3 存储桶中 - get zip files from one s3 bucket unzip them to another s3 bucket python boto3 for AWS - S3 Bucket Sync 优化 - python boto3 for AWS - S3 Bucket Sync optimization AWS S3 桶 403 - AWS S3 bucket 403 如何将 AWS S3 存储桶与远程非 AWS 服务器上的文件同步? - How do I sync an AWS S3 bucket with files on a remote non-AWS server? 将文件从 Mac (iCloud) 保存到 S3 存储桶 (AWS) 的脚本 - Script to save files from Mac (iCloud) to S3 bucket (AWS) 使用正则表达式从 aws s3 url 中提取存储桶名称 - Extract bucket name from aws s3 url using regex
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM