How to specify a white space in the AWS CLI S3?

Asked

Viewed 60 times

0

Use Powershell or CMD to execute a command on AWS CLI S3, the command I execute is this:

aws s3 cp s3://repositorioimagens/ampliacao/BR/1022-IKON IMAGES/STOCK239/ . --recursive

The problem is that when I have a folder with blank space somewhere I get the error

Unknown options: .

Because he understands that I finished a part of the command and I’m setting it up (just like it happens after /STOCK239/ that I put the . --recursive).

How to explain to the CLI that I want a blank in 1022-IKON IMAGES > 1022-IKON(ESPAÇO EM BRANCO)IMAGES

  • Already tried to escape the character with the backslash, IKON\ IMAGES?

  • Already, not working, error persists.

1 answer

1


You need to put every string inside double quotes "".

aws S3 cp "S3://repositorioimagens/ampliacao/BR/1022-IKON IMAGES/STOCK239/" . -recursive

  • Thanks @Henrique, I had discovered but I forgot to answer here. + 1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.