Archive for 30 December 2015

Using s3cmd to synchronize local files against an S3 bucket

I use the following command to synchronize a local directory in a web project containing static resources with an S3 bucket. s3cmd \ –ssl \ –skip-existing \ –recursive \ –delete-removed \ –no-preserve \ –guess-mime-type \ –add-header=Expires:2037-12-31T00:00:00Z \ –add-header=Cache-Control:max-age=155520000,public \ –encoding=UTF-8 \ sync ./src/main/webapp/static/ s3://bucketname HTTP response headers are defined per-file rather than per-bucket, and therefore [...]