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.
Use double quotes. For example:
aws s3 cp "s3://source-bucket/My CV 2017.pdf" "s3://destination-bucket/My CV 2017.pdf"
Using double quotes can solve the problem when you have single file to upload.
For the bulk files, try uploading directory with recursive option
aws s3 mv ../directory-with-files/ s3://bucket-name/folder-to-upload/ --recursive
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With