我尝试使用 s3cmd 将文件上传到我的 S3 存储桶。工作正常,但已经存在的文件不会被覆盖,而是保存为新文件,如“filename-1.ext”。
我已经找到了
-f, --force (Force overwrite and other dangerous operations.)
Run Code Online (Sandbox Code Playgroud)
命令位于http://s3tools.org/usage并尝试过
s3cmd put ~/Desktop/filename.ext s3://mybucket -f
Run Code Online (Sandbox Code Playgroud)
但文件仍保存为新文件且不会被覆盖。有人有什么主意吗?感谢您的帮助!