Git Product home page Git Product logo

mongo-tools's Introduction

MongoDB Tools

This is the 2.7.x unstable branch. This project is a work in progress.

  • bsondump - display BSON files in a human-readable format
  • mongoimport - Convert data from JSON, TSV or CSV and insert them into a collection
  • mongoexport - Write an existing collection to CSV or JSON format
  • mongodump/mongorestore - Dump MongoDB backups to disk in .BSON format, or restore them to a live database
  • mongostat - Monitor live MongoDB servers, replica sets, or sharded clusters
  • mongofiles - Read, write, delete, or update files in GridFS
  • mongooplog - Replay oplog entries between MongoDB servers
  • mongotop - Monitor read/write activity on a mongo server

Report any bugs, improvements, or new feature requests at https://jira.mongodb.org/browse/tools

####Setup

Clone the repo and set your GOPATH to include the vendored dependencies by using the helper script set_gopath.sh

git clone https://github.com/mongodb/mongo-tools
cd mongo-tools
. set_gopath.sh

Building Tools

To build the tools, you need to have Go version 1.3 and up. Running the build.sh script will install all the tools to ./bin.

Alternatively, you can set GOBIN and use go install:

export GOBIN=bin
go install mongodump/main/mongodump.go

An additional flag, -tags, can be passed to the go install command in order to install the tools with support for SSL and/or SASL. For example:

go install -tags ssl mongoimport/main/mongoimport.go # install mongoimport with SSL support enabled
go install -tags sasl mongoimport/main/mongoimport.go # install mongoimport with SASL support enabled
go install -tags "ssl sasl" mongoimport/main/mongoimport.go # install mongoimport with both SASL and SSL

Alternatively, you can run build.sh with the appropriate arguments. For example:

build.sh ssl # install all the tools with SSL support enabled
build.sh sasl ssl # install all the tools with both SASL and SSL support enabled

mongo-tools's People

Contributors

deafgoat avatar mpobrien avatar vkarpov15 avatar 3rf avatar alabid avatar amidvidy avatar antonytm avatar visemet avatar markbenvenuto avatar monkey101 avatar

Watchers

James Cloos avatar  avatar

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.