Giter Club home page Giter Club logo

cb-index-export's Introduction

cb-index-export

Exports indexes, definitions, node placement and stats from a Couchbase Cluster.

--

Requirements

Requires Node, if you don't have node, you can install nvm by issuing the following command.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

Reinitialize shell

. ~/.bashrc

then

nvm install 9

Installing from Repo

1. Clone the Repo

git clone https://github.com/couchbaselabs/cb-index-export.git

2. Move to the repo directory

cd cb-index-export

3. Install Dependencies

make install

4. Build the project

make build

5. Link globally

npm link

Installing from NPM

Install cb-index-export globally

npm install cb-index-export -g

Usage

cb-index-export --help

  Usage: cb-index-export [options]

  This will gather all of the indexes from a cluster, along with their definitions, placement and stats.

  Options:

    -V, --version          output the version number
    -c, --cluster <s>      The cluster address (default: localhost)
    -i, --index-nodes <s>  A comma-delimited list of index node hostnames.  If not specified they will be retrieved from the cluster map
    -u, --username <s>     Cluster Admin or RBAC username (default: Administrator)
    -p, --password <s>     Cluster Admin or RBAC password (default: password)
    -o, --output <s>       The string "console" or a destination to output the file (default: /Users/aaronbenton/projects/couchbase/results.csv)
    -x, --overwrite <b>    Overwrite the destination file if it exists already (default: false)
    -d, --delimiter <s>    The delimiter to use (default: ,)
    -t, --timeout <n>      Timeout in milliseconds for the operation (default: 2000)
    -d, --delimiter <s>    The delimiter to use (default: ,)
    -h, --help             output usage information

Example

cb-index-export \
  --cluster localhost \
  --username Administrator \
  --password password \
  --output somedir/results.csv \
  --overwrite true

cb-index-export's People

Contributors

bentonam avatar

Stargazers

Jon Repp avatar

Watchers

Steve Yen avatar Thuan Nguyen avatar Sarath Lakshman avatar Mike Wiederhold avatar Jeffry Morris avatar Tyler Mitchell avatar Abhishek Singh avatar James Cloos avatar Dean Proctor avatar Alex Ma avatar Brett Lawson avatar  avatar Jack Harper avatar Wayne Siu avatar Sundar Sridharan avatar  avatar  avatar Sriram Ganesan avatar Dan Owen avatar Jose Molina avatar Dave Finlay avatar  avatar vickiezeng avatar  avatar Adam Fraser avatar Roi Katz avatar  avatar Keshav Murthy avatar Laura Czajkowski avatar Karthik Sekar  avatar  avatar

cb-index-export's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.