Using s3cmd to recursively update the meta data on a bucket

In our case, we needed to set the Expires and Cache-Control headers on all the files in one of our buckets for optimization purposes. Here’s what we did. Only the newest version of s3cmd supports the modify command, so if you have an old version installed, run apt-get remove s3cmd to remove the old version. Read more about Using s3cmd to recursively update the meta data on a bucket[…]