如何将整个目录上传到S3?

TIM*_*MEX 2 python file amazon-s3 amazon-web-services

我希望我的目录及其所有子目录和文件直接进入S3.克隆它.

有一个简单的脚本/程序来做到这一点?

我在Ubuntu linux上.

Jay*_*dri 6

  1. 安装S3(http://s3tools.org/download)

  2. 配置它: s3cmd --configure

  3. 创建一个存储桶:( s3cmd mb s3://my-bucket或者,您可以通过S3Fox之类的工具执行此操作)

  4. 将本地目录与S3同步: s3cmd sync /path/to/local/dir/ s3://my-bucket