Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bsondump TOOLS-2253 Eliminate distinct exit codes (#147) Apr 24, 2019
etc minor: Update THIRD-PARTY-NOTICES Jan 20, 2019
legacy Migrate mongoreplay common packages to a legacy 'dir' Apr 24, 2019
mongodump TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
mongoexport TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
mongofiles TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
mongoimport TOOLS-1956 Use the bulk write API in mongoimport Apr 26, 2019
mongoreplay Migrate mongoreplay common packages to a legacy 'dir' Apr 24, 2019
mongorestore TOOLS-2280 Fix race condition in mongorestore Apr 29, 2019
mongostat TOOLS-2253 Eliminate distinct exit codes (#147) Apr 24, 2019
mongotop TOOLS-2253 Eliminate distinct exit codes (#147) Apr 24, 2019
test TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
testdata/certs Migrate mongoreplay common packages to a legacy 'dir' Apr 24, 2019
vendor TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
.eslintrc.yml TOOLS-1261 add linting to jstests Jun 27, 2016
.gitattributes Add .gitattributes - use linefeed for gpm, a bash script Sep 19, 2014
.gitignore TOOLS-2152 Rationalize Test Types Dec 20, 2018
CONTRIBUTING.md TOOLS-2152 Rationalize Test Types Dec 20, 2018
Gopkg.lock TOOLS-2285 / TOOLS-2132 Read preference parsing improvements (#152) May 2, 2019
Gopkg.toml Minor: revendor mongo-tools-common to follow master branch for TOOLS-… Apr 29, 2019
LICENSE.md TOOLS-224 add license Dec 17, 2014
README.md minor: Update README set_goenv instructions May 4, 2019
THIRD-PARTY-NOTICES minor: Update THIRD-PARTY-NOTICES Jan 20, 2019
binaryurl.py minor: Don't test -rcX versions Oct 3, 2018
build.sh TOOLS-2179 Fix testBsondump not running on Windows (#123) Feb 21, 2019
common-pvt.yml minor: bump Evergreen macos hosts to the macos-1014 boxes May 1, 2019
common.yml minor: bump Evergreen macos hosts to the macos-1014 boxes May 1, 2019
runTests.sh Migrate mongoreplay common packages to a legacy 'dir' Apr 24, 2019
set_goenv.sh TOOLS-2236 Set GOCACHE to temp directory on Windows builds Apr 25, 2019
test.sh TOOLS-2152 Rationalize Test Types Dec 20, 2018

README.md

MongoDB Tools

  • 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
  • mongotop - Monitor read/write activity on a mongo server
  • mongoreplay - Capture, observe, and replay traffic for MongoDB

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

Setup

Clone the repo and run . ./set_goenv.sh to setup your GOPATH:

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.

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

mkdir bin
go build -o bin/mongoimport mongoimport/main/mongoimport.go # build mongoimport
go build -o bin/mongoimport -tags ssl mongoimport/main/mongoimport.go # build mongoimport with SSL support enabled
go build -o bin/mongoimport -tags "ssl sasl" mongoimport/main/mongoimport.go # build mongoimport with SSL and SASL support enabled

Contributing

See our Contributor's Guide.

Documentation

See the MongoDB packages documentation.

You can’t perform that action at this time.