I modified s3cmd 1.0.0-rc1 to allow replacing headers such as Cache-Control without having to reupload the file. I'm updating about 400,000 files with this right now. I used the information here http://doc.s3.amazonaws.com/proposals/copy.html and proxy sniffing BucketExplorer to figure it out. Can someone take a look and check it in? I've seen alot of people looking for this functionality on the net.
Try it out. Dump some image on S3 and try the command below. s3cmd replace --acl-public --add-header "Cache-control: max-age=300" s3:// media.aws.com/test.png wget -S http://media.aws.com/test.png s3cmd replace --acl-public --add-header "Cache-control: max-age=400" s3:// media.aws.com/test.png wget -S http://media.aws.com/test.png You should see headers are updating without having to reupload the file. It copy's an s3 object to a new object in s3 and adds the headers. Thanks, Jobe Bittman
s3cmd-1.0.0-rc1-headerupdates.patch
Description: Binary data
------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general