AWS S3 在两个存储桶之间复制文件和文件夹 [英] AWS S3 copy files and folders between two buckets

查看:49
本文介绍了AWS S3 在两个存储桶之间复制文件和文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种工具来帮助我将一个 AWS S3 存储桶的内容复制到第二个 AWS S3 存储桶中,而无需先将内容下载到本地文件系统.

I have been on the lookout for a tool to help me copy content of an AWS S3 bucket into a second AWS S3 bucket without downloading the content first to the local file system.

我曾尝试使用 AWS S3 控制台复制选项,但这导致一些嵌套文件丢失.

I have tried to use the AWS S3 console copy option but that resulted in some nested files being missing.

我曾尝试使用 Transmit 应用程序(由 Panic 提供).重复命令首先将文件下载到本地系统,然后将它们上传回第二个存储桶,这非常低效.

I have tried to use Transmit app (by Panic). The duplicate command downloads the files first to the local system then uploads them back to the second bucket, which quite inefficient.

推荐答案

在 S3 存储桶之间复制

AWS(就在最近)发布了一个用于在存储桶之间复制的命令行界面.

Copy between S3 Buckets

AWS (just recently) released a command line interface for copying between buckets.

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

$ aws s3 sync s3://mybucket-src s3://mybucket-target --exclude *.tmp
..

将从一个目标存储桶复制到另一个存储桶.

请参阅此处的文档:S3​​ CLI 文档

这篇关于AWS S3 在两个存储桶之间复制文件和文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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