https://github.com/hex7c0/mongodb-restore-cli
mongodb-restore cli for Nodejs
https://github.com/hex7c0/mongodb-restore-cli
cli mongodb nodejs restore
Last synced: 12 months ago
JSON representation
mongodb-restore cli for Nodejs
- Host: GitHub
- URL: https://github.com/hex7c0/mongodb-restore-cli
- Owner: hex7c0
- License: apache-2.0
- Created: 2014-12-27T09:12:11.000Z (over 11 years ago)
- Default Branch: 0.3
- Last Pushed: 2017-03-17T11:12:37.000Z (over 9 years ago)
- Last Synced: 2025-06-02T04:16:03.747Z (about 1 year ago)
- Topics: cli, mongodb, nodejs, restore
- Language: JavaScript
- Homepage: https://github.com/hex7c0/mongodb-restore-cli
- Size: 37.1 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [mongodb-restore-cli](https://github.com/hex7c0/mongodb-restore-cli)
[](https://www.npmjs.com/package/mongodb-restore-cli)
[](https://travis-ci.org/hex7c0/mongodb-restore-cli)
[](https://ci.appveyor.com/project/hex7c0/mongodb-restore-cli)
[](https://david-dm.org/hex7c0/mongodb-restore-cli)
CLI for [`mongodb-restore`](https://github.com/hex7c0/mongodb-restore)
Similar to [mongorestore](http://docs.mongodb.org/manual/reference/program/mongorestore/)
## Installation
Install through NPM
```bash
npm install -g mongodb-restore-cli
```
or
```bash
git clone git://github.com/hex7c0/mongodb-restore-cli.git
```
## API
global cli with `-g` option
```bash
$ mongodb-restore -h
Usage:
mongodb-restore [OPTIONS] [ARGS]
Options:
--verbose FILE Save internal reporting into a logfile
--host STRING Specifies a resolvable hostname for the mongod
-p, --parser [STRING] Data parser (bson, json) (Default is bson)
-o, --out [STRING] Specifies the directory where get the backup (Default is ./)
-r, --tar STRING Extract files from a .tar file
-m, --metadata Set metadata of collections as Index, ecc
-d, --drop Drop every collection from the target database
-t, --timeout N Exit if the process takes longer than N seconds
-v, --version Display the current version
-h, --help Display help and usage details
```
## Examples
Take a look at my [examples](examples)
### [License GPLv3](LICENSE)