node-mongo-backup-manager
v0.0.3
Published
MongoDB backup manager for Node.js
Downloads
4
Readme
node-mongo-backup-manager
[][travis-url]
[travis-url]: https://travis-ci.org/markdicksonjr/node-mongo-backup-managernpm publish
A simple utility for taking a backup of a mongo database
Install
npm install node-mongo-backup-manager
Usage
This is a sample taken from the test suite found within the module, with a mongo instance that requires authentication:
var backup_manager = require('node-mongo-backup-manager');
backup_manager.backup({
username: values.auth.username,
password: values.auth.password,
database: 'backup-test',
outputDirectory: values.outputDirectory,
createEnclosingDirectory: true
}, function(err_backup) {
// check err_backup - test is complete
});