7.04)
apt-get install -y subversion build-essential libcurl4-openssl-dev
libxml2-dev libfuse-dev
svn checkout http://s3fs.googlecode.com/svn/trunk/s3fs s3fs
make -C s3fs (install g++ if needed and install make)
cp s3fs/s3fs /usr/local/bin
- Set up an S3 access configuration file
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
echo "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs
- Start s3fs (probably best to use a new/empty bucket the first time):
bucket=...
mkdir -p /mnt/$bucket
/usr/local/bin/s3fs $bucket /mnt/$bucket
- Shut it down (flushes any cached data)
s3fs has a caching mechanism: You can enable local file caching to minimize downloads, e.g., :
/usr/bin/s3fs mybucket /mnt -ouse_cache=/tmp
4 comments:
Thanks for the post. Thats a nice piece of information i must say.It really helped me.
do if I have to sudo to do all these commands? thx
yeah.. atleast i always used to do so..
Thanks for the post.
In my case, I can't read/write directories. Is this also a known issue for you? (using ec2 ubuntu 11.1 too)
Post a Comment