Skip to content

Instantly share code, notes, and snippets.

@rainly
Forked from alvin2ye/sync2s3.bash
Created March 17, 2011 10:24
Show Gist options
  • Select an option

  • Save rainly/874124 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/874124 to your computer and use it in GitHub Desktop.
sync file to amazon
#!/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