Package Exports
- mongodb-backup
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mongodb-backup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mongodb-backup
Backup for mongodb.
Look at mongodb-backup-cli for command line usage
Installation
Install through NPM
npm install mongodb-backupor
git clone git://github.com/hex7c0/mongodb-backup.gitAPI
inside nodejs project
var backup = require('mongodb-backup');backup(options)
options
uri- String URI for MongoDb connection (default "required")root- String Path where save data (default "required")[parser]- String Data parser (bson, json) (default "bson")[collections]- Array Select which collections save (default "disabled")[callback]- Function Callback (default "disabled")[tar]- String Pack files into a .tar file (default "disabled")[query]- Object Query that optionally limits the documents included (default "{}")[logger]- String Path where save log file (default "disabled")[metadata]- Boolean Save metadata of collections as Index, ecc (default "false")
Examples
Take a look at my examples