Day’s one-liner: sync your web server to S3

by Esa Turtiainen
tags: S3 git AWS

Deploy your web server from the local machine to S3:

s3cmd sync --exclude '.git\*' --exclude '\*~' ./ s3://www.\`basename $PWD\`

I put my web server into ~/git/ You cd to this directory. This one-liner sends all important files from the current directory to the S3 web server in bucket ...