下载一个完整的S3桶? [英] Downloading an entire S3 bucket?

查看:871
本文介绍了下载一个完整的S3桶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,有不似乎是一个选项,从AWS管理控制台下载整个S3桶。

I noticed that there doesnt seem to be an option to download an entire S3 bucket from the AWS Management Console.

有没有一种简单的方法来抓住一切都在我的水桶呢?我觉得自己应该做的根文件夹公众使用wget抓住这一切,然后再民营使得它,但我不知道是否有更简单的方法。

Is there an easy way to grab everything in one of my buckets? I was thinking about making the root folder public, using wget to grab it all, and then making it private again but I dont know if there's an easier way.

推荐答案

有关AWS CLI 文档

AWS CLI

Documentation for AWS CLI

AWS最近已发布他们的命令行工具。这很像博托,可以使用须藤的easy_install awscli sudo的PIP安装awscli安装

AWS have recently release their Command Line Tools. This works much like boto and can be installed using sudo easy_install awscli or sudo pip install awscli

一旦安装,就可以简单地运行

Once you have installed, you can then simply run

命令

aws s3 sync s3://mybucket .

输出

download: s3://mybucket/test.txt to test.txt
download: s3://mybucket/test2.txt to test2.txt

这将下载的所有文件。

This will download all of your files.

您也可以做S3桶S3存储,或者本地的S3存储同步。

You can also do S3 bucket to S3 bucket, or local to S3 bucket sync.

退房的文件和其他例如:

Check out the documentation and other example:

<一个href="http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html">http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html

这篇关于下载一个完整的S3桶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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