/couchdb-to-s3

Copy CouchDB database files to S3.

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

couchdb-to-s3

Copy your CouchDB database files to Amazon's S3 service.

npm install couchdb-to-s3

Usage

var copy = require('couchdb-to-S3');

var db = {
    url: "http://localhost:5984",
    name: "the name of your database"
};

var aws = {
    accessKeyId: <aws_access_key_id>,
    secretAccessKey: <aws_secret_access_key>,
    bucket: "your S3 bucket",
};

copy(db, aws, function (err, body) {
    // ...
});

Description

Copies the .couch file of your local database to an S3 bucket.

Uses knox and nano.

For a command-line utility that uses this module, see backup-couchdb-to-s3.

License

BSD.