【发布时间】:2015-12-27 13:13:16
【问题描述】:
我只是在熟悉 Amazon Web Services 和 S3 AWS CLI。
有谁知道是否可以从目标存储桶上存在的源中删除文件?
我正在尝试以下方法:
aws s3 sync /home/recsout s3://myfakebucketname001 --delete
我之前使用 rsync 到具有 --remove-source-files 的 NAS 驱动器,但想改用 S3 和 AWS CLI。
【问题讨论】:
-
我回答了我自己的问题,有一个 mv 命令 aws s3 mv /home/recsout s3://myfakebucketname001 --recursive
标签: amazon-web-services amazon-s3