【问题标题】:How to sync AWS S3 bucket with a directory and don't keep old version如何将 AWS S3 存储桶与目录同步并且不保留旧版本
【发布时间】:2019-01-26 00:31:21
【问题描述】:

我想同步我的 S3 存储桶中的目录并删除目标中的文件,而不是源中的文件。

我尝试了这个命令,但是只保留在目标中的文件。

aws s3 sync my-directory/ s3://my-bucket

【问题讨论】:

    标签: amazon-web-services amazon-s3 synchronization aws-cli


    【解决方案1】:

    我找到了解决方案here,我只是添加了--delete

    aws s3 sync my-directory/ s3://my-bucket --delete
    

    【讨论】:

      猜你喜欢
      • 2017-10-26
      • 1970-01-01
      • 2015-10-10
      • 2017-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多