duan7772
2018-07-19 16:02
浏览 68
已采纳

如何使用aws sdk php同步存储桶中的文件

From the cli, I use a command like this /usr/bin/aws s3 sync $LOCALPATH $REMOTEPATH --metadata-directive REPLACE --cache-control max-age=$TTL

Is there a similar command in the aws sdk php that will upload the contents of a local directory AND delete the files in the bucket that aren't present in the local directory?

图片转代码服务由CSDN问答提供 功能建议

从cli,我使用这样的命令 / usr / bin / aws s3 sync $ LOCALPATH $ REMOTEPATH --metadata-directive REPLACE --cache-control max-age = $ TTL

在aws sdk php中是否有类似的命令会上传一个内容 本地目录并删除存储桶中本地目录中不存在的文件?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doumu6941 2018-07-19 17:09
    已采纳

    No, there is no similar command in the AWS SDK for PHP that will upload the contents of a local directory AND delete the files in the bucket that aren't present in the local directory.

    打赏 评论

相关推荐 更多相似问题