JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 531
  • Score
    100M100P100Q96757F
  • License GPLv3

restore data from mongodb-backup

Package Exports

  • mongodb-restore

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-restore) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mongodb-restore

NPM version Build Status Dependency Status

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

API

inside nodejs project

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

restore(options)

options

  • uri - String URI for MongoDb connection (default "required")
  • root- String Path where get the backup (default "required")
  • [parser] - String Data parser (bson, json) (default "bson")
  • [callback] - Function Callback (default "disabled")
  • [tar] - String Extract files from a .tar file (default "disabled")
  • [logger] - String Path where save log file (default "disabled")
  • [metadata] - Boolean Set metadata of collections as Index, ecc (default "false")

Examples

Take a look at my examples

License GPLv3