Git Product home page Git Product logo

amazon-s3-vfs's Introduction

vfs_amazon_s3.

This is a work in progress. It is an experiment to see how well we can 
integrate Amazon's S3 with Samba via a VFS.

The idea is to allow a Samba share to be a place that you could use to drop
files into and then have them saved up on Amazon's S3 service as a backup for
you.

You need libxml2-devel and libcurl-devel.

To build (against the master branch, or a 3.6.x branch with the FSCTL patches):

1. ./autogen.sh
2. ./configure --with-samba-source=/path/to/samba/source3/
3. make

You need to add the following fields to the share you want to have push files
up to Amazon's S3 service:

[the-share]
	path = /some/path
	vfs objects = vfs_amazon_s3
	vfs_amazon_s3:access key = your-access-key
	vfs_amazon_s3:secret key = your-secret-key
	vfs_amazon_s3:bucket = the-name-of-the-bucket
	vfs_amazon_s3:reloc dir = /path/to/some/dir/not/under/the/share

Yes, I know, the secret key needs to be dealt with in a better fashion.

Progress.

The latest, as of 11-Feb-2012, is that it now uploads files. However, it only
uses PUTs to do that, and has a problem with the delimiter. It really should
use multi-part uploads for large files. It should probably also allow SDs to
be uploaded, perhaps with some simple encoding/serializing of the SD and the
data and any alternate data streams.

TODO:

1. Add tests to configure.in for libxml2-devel and libcurl-devel.

2. Fix bugs in upload and add support for multi-part uploads.

3. Add support for getting previous versions via FSCTLs.

4. Support opening and retrieving files up on S3.

5. Add support for uploading any SDs stored in XATTRs (or even permissions) 
   and perhaps alternate data streams.

amazon-s3-vfs's People

Contributors

richardsharpe avatar

Stargazers

Zack Ramjan avatar  avatar  avatar  avatar  avatar Pantelis Koukousoulas avatar Bruce Chen avatar Daniel Iwan avatar  avatar Vitor Choi Feitosa avatar David Collier-Brown avatar

Watchers

Vitor Choi Feitosa avatar  avatar

Forkers

jhixson74 jannson

amazon-s3-vfs's Issues

symbol lookup error

Hi,
I did install curl-dev on my Ubuntu-13.10 and I can compile the source code without and error. But when samba load amazon_s3.so it shows the following msg:

/opt/samba/sbin/smbd: symbol lookup error: /opt/samba/lib/vfs/amazon_s3.so: undefined symbol: curl_global_init

What would be the problem? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.