ianshward / couchdb2s3

Export CouchDB databases to line oriented json files on s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CouchDB-2-s3

Export a CouchDB database as a line oriented json file, then upload that to s3. Then later on s32couchdb that same file to get it into CouchDB instance. Or just use that line-oriented version of your CouchDB database for something else.

Usage

./bin/couchdb2s3.js --config config.json --outputBucket my-bucket --database http://localhost:5984/my-database

and

./bin/s32couchdb.js --config config.json --inputBucket my-bucket --database http://localhost:5984/my-database

The import script will not create a new database for you, you'll have to do that on your own.

Caveats

  • Attached documents are not currently supported.
  • As written these scripts expect to be used as part of a export system where only the most recent backups are meaningful.

About

Export CouchDB databases to line oriented json files on s3


Languages

Language:JavaScript 100.0%