How to copy a file with spaces in its file name from one bucket to the other using AWS CLI (Dos)

感情迁移 提交于 2020-01-24 02:17:08

问题


I am trying to copy a file by the same My CV 2017.pdf from one AWS bucket to the other using the AWS command line. But I am getting error doing that.

I tried using My\ Cv\ 2017.pdf and 'My CV 2017.pdf', both did not work.


回答1:


Use double quotes. For example:

aws s3 cp "s3://source-bucket/My CV 2017.pdf" "s3://destination-bucket/My CV 2017.pdf"



来源:https://stackoverflow.com/questions/46997354/how-to-copy-a-file-with-spaces-in-its-file-name-from-one-bucket-to-the-other-usi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!