To copy a file that has space in its name to and from S3 bucket, simply enclose the paths in double-quotes as shown below –
1 2 3 4 5 |
## Copy file with space in its name in S3 bucket aws s3 cp "/ ## Same for copying folder that has space in its name aws s3 cp "/ |