eurica

numbers for people.

Bash script to upload files for S3 static hosting

Here’s a bash script to recursively upload a directory to S3 with s3cp

It turns out that I probably won’t use this, it’s slower than the Ruby script that I’m using (I suspect because it makes a new connection every time). Most importantly if handles the headers and GZipping so that everything is served optimally.

Since it uploads everything, it probably makes more sense to upload all the files of the same extension recursively.

Comments are closed.