如何使用AWS CLI(Dos)将文件名中带有空格的文件从一个存储桶复制到另一个存储桶 [英] How to copy a file with spaces in its file name from one bucket to the other using AWS CLI (Dos)
本文介绍了如何使用AWS CLI(Dos)将文件名中带有空格的文件从一个存储桶复制到另一个存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用AWS命令行将相同的My CV 2017.pdf
文件从一个AWS存储桶复制到另一个AWS存储桶.但是这样做却出错了.
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.
我尝试使用My\ Cv\ 2017.pdf
和'My CV 2017.pdf'
,但都无法正常工作.
I tried using My\ Cv\ 2017.pdf
and 'My CV 2017.pdf'
, both did not work.
推荐答案
使用双引号.例如:
aws s3 cp "s3://source-bucket/My CV 2017.pdf" "s3://destination-bucket/My CV 2017.pdf"
这篇关于如何使用AWS CLI(Dos)将文件名中带有空格的文件从一个存储桶复制到另一个存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文