Using Amazon S3 on Ubuntu

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(''s3sync'' installation)
Line 5: Line 5:
$ '''sudo tar zxvf s3sync.tar.gz -C /opt/'''
$ '''sudo tar zxvf s3sync.tar.gz -C /opt/'''
$ '''sudo chmod go-w /opt/s3sync'''
$ '''sudo chmod go-w /opt/s3sync'''
-
$ '''( DIR=`mktemp -d` ; cd $DIR ; wget http://mirbsd.mirsolutions.de/cvs.cgi/~checkout~/src/etc/ssl.certs.shar ;
+
$ '''( 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 )'''
-
'''sh ssl.certs.shar ; sudo mv f73e89fd.0 /opt/s3sync ; cd .. ; rm -r $DIR )'''
+
== ''s3sync'' configuration ==
== ''s3sync'' configuration ==

Revision as of 15:41, 11 October 2007

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