hex7c0 / mongodb-backup-cli

mongodb-backup cli for Nodejs

Home Page:https://github.com/hex7c0/mongodb-backup-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version Linux Status Windows Status Dependency Status

CLI for mongodb-backup

Similar to mongodump

Installation

Install through NPM

npm install -g mongodb-backup-cli

or

git clone git://github.com/hex7c0/mongodb-backup-cli.git

API

global cli with -g option

$ mongodb-backup -h

Usage:
  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

About

mongodb-backup cli for Nodejs

https://github.com/hex7c0/mongodb-backup-cli

License:Apache License 2.0


Languages

Language:JavaScript 100.0%