-
-
Save rainly/874124 to your computer and use it in GitHub Desktop.
sync file to amazon
This file contains hidden or 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 | |
| # http://wiki.agideo.com/agideowiki/show/S3Rsync | |
| # require http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz | |
| # install curl http://gist.github.com/631872.txt > sync2s3.bash | |
| export AWS_ACCESS_KEY_ID=YOUR_ID | |
| export AWS_SECRET_ACCESS_KEY=YOUR_PWD | |
| export AWS_CALLING_FORMAT=SUBDOMAIN | |
| /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby /opt/s3sync/s3sync.rb /var/www/xxx/ xxx:pre |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment