- Newest
- Most votes
- Most comments
I'm having the same problems...
I did aws s3 sync some/local/folder s3://my-special-bucket/some/local/folder
and some of the files that got uploaded were .tar.gz files. Well, AWS decided that those should receive the metadata Content-Type: applicaton/x-tar
instead of Content-Type: application/x-gzip
. Highly aggravating. I had to write a script to list every file in my bucket and then fix the metadata for any file with the .tar.gz extension.
I have yet to see anyone explain how to download a tar.gz from an S3 bucket without AWS changing the format to a .tar and changing the config of the files. I need help to figure out how to down load a large (1.7 GB) tar.gz file.
Hello All,
I have the same issue, anyone has any solution or suggestion?
Hi anjalitrambadia, DSimon,
We took a quick look over the sync issues and wanted to get some more information.
If you wouldn't mind creating an issue on the AWS-CLI's Github (https://github.com/aws/aws-cli/), that will help us better track this. Including the version of your aws cli (aws --version) and a brief set up steps for reproduction will be really useful.
Thanks,
AWS-CLI team
Edited by: nateprewitt on May 12, 2020 6:11 PM
You should use --content-encoding "application/x-compressed-tar" option during S3 uploading:
aws s3 cp --content-encoding "application/x-compressed-tar".......
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 25 days ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago