Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 10 years ago)
- Default Branch: 0.3
- Last Pushed: 2017-03-17T11:12:37.000Z (almost 8 years ago)
- Last Synced: 2024-04-23T19:38:54.420Z (8 months ago)
- Topics: cli, mongodb, nodejs, restore
- Language: JavaScript
- Homepage: https://github.com/hex7c0/mongodb-restore-cli
- Size: 37.1 KB
- Stars: 6
- Watchers: 2
- 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)
[![NPM version](https://img.shields.io/npm/v/mongodb-restore-cli.svg)](https://www.npmjs.com/package/mongodb-restore-cli)
[![Linux Status](https://img.shields.io/travis/hex7c0/mongodb-restore-cli.svg?label=linux-osx)](https://travis-ci.org/hex7c0/mongodb-restore-cli)
[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/mongodb-restore-cli.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/mongodb-restore-cli)
[![Dependency Status](https://img.shields.io/david/hex7c0/mongodb-restore-cli.svg)](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 -hUsage:
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)