Created
July 10, 2012 02:57
-
-
Save harperreed/3080695 to your computer and use it in GitHub Desktop.
Create an static S3 bucket to mirror a site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#this will mirror a website, upload to s3, and make it publically available. | |
#install s3cmd. install wget. (i use homebrew). | |
#configure s3cmd (s3cmd --configure) | |
# run this by doing: mirror_site.sh www.example.org | |
wget --mirror -p --html-extension --convert-links -e robots=off -P . $1 | |
s3cmd mb s3://$1 | |
s3cmd put --acl-public --recursive $1/ s3://$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment