Using Amazon S3 on Ubuntu

From Brandonhutchinson.com

Revision as of 15:40, 11 October 2007 by Hutch (Talk | contribs)
Jump to: navigation, search

s3sync installation

$ sudo apt-get -y install ruby libopenssl-ruby
$ wget http://s3.amazonaws.com/ServEdge_pub/s3sync/s3sync.tar.gz
$ sudo mkdir /opt/s3sync
$ sudo tar zxvf s3sync.tar.gz -C /opt/
$ sudo chmod go-w /opt/s3sync
$ ( DIR=`mktemp -d` ; cd $DIR ; wget http://mirbsd.mirsolutions.de/cvs.cgi/~checkout~/src/etc/ssl.certs.shar ;
sh ssl.certs.shar ; sudo mv f73e89fd.0 /opt/s3sync ; cd .. ; rm -r $DIR )

s3sync configuration

$ sudo sh -c 'echo "AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID\nAWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY\n
RUBYLIB=$RUBYLIB:/opt/s3sync\nSSL_CERT_DIR=/opt/s3sync" > /opt/s3sync/s3_variables'
$ sudo chmod 400 /opt/s3sync/s3_variables
$ sudo chown your_user_ID /opt/s3sync/s3_variables

Links

Personal tools