下载一个完整的S3桶? [英] Downloading an entire S3 bucket?
问题描述
我注意到,有不似乎是一个选项,从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屋!