AWS Linux

Install s3fs on Ubuntu from SVN

s3fs mounts an Amazon AWS S3 bucket into your files system as a directory. This is fantastic for backup folders – backups are automagically off-site.

Here is a better way of installing s3FS using SVN.

Install Pre-requisites

apt-get install build-essential libfuse-dev fuse-utils libcurl4-openssl-dev libxml2-dev mime-support

Install s3fs

svn checkout http://s3fs.googlecode.com/svn/trunk/ s3fsbr>cd s3fs/
autoreconf --install
./configure --prefix=/usr
make
make install

Syntax is

s3fs bucket-name  mount/point

You must either setup two environment variables

  • AWSACCESSKEYID and
  • AWSSECRETACCESSKEY

or create a password file.

vim /etc/passwd-s3fs

add

accessKeyId:secretAccessKey

If you have multiple buckets that come from different AWS accounts, you can setup lines as follows

bucket-name-1:accessKeyId1:secretAccessKey1
bucket-name-2:accessKeyId2:secretAccessKey2

done

Leave a Reply