Installing s3fs on CentOS 5.6
Installing s3fs on CentOS 5.6
Assumptions:
- rpmforge yum repo installed
- centos up-to-date – yum -y update
Installation:
- yum -y install python
- yum -y install fuse
- yum -y install libfuse
- yum -y install python-hashlib
- wget ftp://rpmfind.net/linux/epel/5/i386/fuse-python-0.2.1-1.el5.i386.rpm
- rpm -ivh fuse-python-0.2.1-1.el5.i386.rpm
- yum -y install fuse-s3fs
Then you will need to do:
- 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>
- Create a bucket:
/usr/bin/s3fs -C -c bucketnameofyourchoice - Format bucket to be used with this program:
/usr/bin/s3fs -C -f bucketnameofyourchoice - 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.