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=$?
Comments
Leave a comment