hex7c0 / mongodb-restore

restore data from mongodb-backup for Nodejs
https://github.com/hex7c0/mongodb-restore
Apache License 2.0
53 stars 21 forks source link
mongodb nodejs restore

mongodb-restore

NPM version Linux Status Windows Status Dependency Status Coveralls

Restore data from mongodb-backup

Look at mongodb-restore-cli for command line usage, similar to mongorestore

Installation

Install through NPM

npm install mongodb-restore

or

git clone git://github.com/hex7c0/mongodb-restore.git

Bson@0.4.11 has been pulled out, so versions >= 1.3.0 and <= 1.4.1 are deprecate

API

inside nodejs project

var restore = require('mongodb-restore');

restore({
  uri: 'uri', // mongodb://<dbuser>:<dbpassword>@<dbdomain>.mongolab.com:<dbport>/<dbdatabase>
  root: __dirname + '/dbName'
});

restore(options)

options

Examples

Take a look at my examples

License Apache2