将一个s3文件夹聚合到另一个

s3clumper的Python项目详细描述


生成的内容的tarball(可以选择使用gzip压缩) S3前缀(保留内部路径和文件名)将 tarball到指定的s3 url并选择性地删除源文件。

s3clumper: Aggregate S3 prefixes into tarballs in S3

Usage: s3clumper {{arguments}} {{options}}

Arguments:
  from [text]  S3 URL prefix to clump
  to [text]    S3 URL for target clump

Options:
  -h, --help      Show this help message and exit
  -H, --HELP      Help for all sub-commands
  -c, --check     Don't check for target (may over-write)
  -C, --nocolour  Suppress colours in reports
  -D, --debug     Enable debug logging
  -d, --delete    Don't delete source files
  -q, --quiet     Be quiet, be vewy vewy quiet
  -v, --verbose   Verbose output
  -V, --version   Report installed version
  -z, --compress  Don't compress the target

示例:

$ s3clumper s3://bucket1/data/ s3://bucket2/archive/logs-20170302.tar.gz
Fetching |################################| 55/55
Sending |################################| 100/100
Deleting |################################| 55/55

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java变量始终存储0值。为什么?   如何使用Java/REST将Azure blob从一个存储容器移动到另一个存储容器?   java将commons DBCP从1.2升级到1.4,我应该害怕吗?   java如何使用分隔符拆分字符串?   java使用数组读取json对象   java在groovy中切片字符串   交换数组java的两个邻域元素   java移动用于确定字符串是否为回文的逻辑   java Android应用程序在一个活动中崩溃   java Sparkjava将webapp文件夹设置为静态资源/模板的文件夹   java复杂条件表达式,用户易用。   java如何仅在表存在时从表中选择值   java I无法将数据从Recyclerview传递到其他活动   java数据结构最佳设计(大数据)   java Android从DatePickerDialogFragment中删除日历视图   java将数据从Firebase获取到片段   数组。sort()在java中运行不正常