Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hex7c0/mongodb-backup-cli
mongodb-backup cli for Nodejs
https://github.com/hex7c0/mongodb-backup-cli
backup cli mongodb nodejs
Last synced: about 1 month ago
JSON representation
mongodb-backup cli for Nodejs
- Host: GitHub
- URL: https://github.com/hex7c0/mongodb-backup-cli
- Owner: hex7c0
- License: apache-2.0
- Created: 2014-12-06T15:23:53.000Z (about 10 years ago)
- Default Branch: 0.3
- Last Pushed: 2017-03-17T11:12:36.000Z (almost 8 years ago)
- Last Synced: 2024-11-21T22:38:00.060Z (about 1 month ago)
- Topics: backup, cli, mongodb, nodejs
- Language: JavaScript
- Homepage: https://github.com/hex7c0/mongodb-backup-cli
- Size: 38.1 KB
- Stars: 16
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [mongodb-backup-cli](https://github.com/hex7c0/mongodb-backup-cli)
[![NPM version](https://img.shields.io/npm/v/mongodb-backup-cli.svg)](https://www.npmjs.com/package/mongodb-backup-cli)
[![Linux Status](https://img.shields.io/travis/hex7c0/mongodb-backup-cli.svg?label=linux-osx)](https://travis-ci.org/hex7c0/mongodb-backup-cli)
[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/mongodb-backup-cli.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/mongodb-backup-cli)
[![Dependency Status](https://img.shields.io/david/hex7c0/mongodb-backup-cli.svg)](https://david-dm.org/hex7c0/mongodb-backup-cli)CLI for [`mongodb-backup`](https://github.com/hex7c0/mongodb-backup)
Similar to [mongodump](http://docs.mongodb.org/manual/reference/program/mongodump/)
## Installation
Install through NPM
```bash
npm install -g mongodb-backup-cli
```
or
```bash
git clone git://github.com/hex7c0/mongodb-backup-cli.git
```## API
global cli with `-g` option
```bash
$ mongodb-backup -hUsage:
mongodb-backup [OPTIONS] [ARGS]Options:
--verbose FILE Save internal reporting into a logfile
--host STRING Specifies a resolvable hostname for the mongod
-c, --cursors NUMBER Num of cursors
-p, --parser [STRING] Data parser (bson, json) (Default is bson)
-o, --out [STRING] Specifies the directory where saves the output (Default is dump/)
-r, --tar STRING Pack files into a .tar file
-c, --collections STRINGSpecifies a collection to backup
-q, --query STRING Query that optionally limits the documents included
-m, --metadata Save metadata of collections as Index, ecc
-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)