Answer to Question #5830 in Programming & Computer Science for Rick

Question #5830
I use a bash script to make an s3cmd put call to upload tar.gz files to Amazon's S3 cloud. The files upload successfully but with a defaul mime type of x-tar. They need to have a content-type of x-gzip so I am trying to use the --add-header flag but the files still upload with the wrong meta-data. Here is the code I am using:

/usr/bin/s3cmd -r put ${SOURCE} s3://BackThatSiteUp/${DESTINATION}/ --add-header="Content-Type:application/x-gzip" 1>>${ACTIVITYLOG} 2>>${ERRORLOG}
ret2=$?

Can you help with this question?
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS