Installing s3fs on CentOS 5.6

Standard

Installing s3fs on CentOS 5.6

Assumptions:

  • rpmforge yum repo installed
  • centos up-to-date – yum -y update

Installation:

  1. yum -y install python
  2. yum -y install fuse
  3. yum -y install libfuse
  4. yum -y install python-hashlib
  5. wget ftp://rpmfind.net/linux/epel/5/i386/fuse-python-0.2.1-1.el5.i386.rpm
  6. rpm -ivh fuse-python-0.2.1-1.el5.i386.rpm
  7. yum -y install fuse-s3fs

Then you will need to do:

  1. Make your access details available to the program:
    (there are a multitude of ways to do that. This is just one shot for this session. You could also include them in your environment)

    export AWS_ACCESS_KEY_ID=<your amazon access key id>

    export AWS_SECRET_ACCESS_KEY=<your amazon secret access key>

  2. Create a bucket:
    /usr/bin/s3fs -C -c bucketnameofyourchoice
  3. Format bucket to be used with this program:
    /usr/bin/s3fs -C -f bucketnameofyourchoice
  4. Mount the bucket to a convenient place:
    /usr/bin/s3fs -o bucket=bucketnameofyourchoice /mnt/s3/

Then Amazon S3 behaves as if it is part of your file system and you can copy to and from and rsync to and from it. Ideal for backup.