Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 -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)