couchdb2s3

Export CouchDB databases to line oriented json files on s3

npm install couchdb2s3
2 downloads in the last day
41 downloads in the last week
76 downloads in the last month

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.

Install

npm install -g couchdb2s3

Usage

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

and

s32couchdb --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.
npm loves you