No description, website, or topics provided.
Go JavaScript Python Other
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bsondump TOOLS-2033 Add SlowBSONDump failpoint for bsondump May 4, 2018
common minor: Fix go lint error Aug 15, 2018
mongodump TOOLS-1993 Fix oplog_rollover_test.js on 3.7+ Apr 26, 2018
mongoexport TOOLS-1972 Hint the _id index instead of using $snapshot query option Mar 16, 2018
mongofiles TOOLS-2005 Make all mongofiles diag output use log handler Apr 10, 2018
mongoimport TOOLS-1822 Put copyright/license on all files Nov 1, 2017
mongoreplay TOOLS-2060 Add mongoreplay playback support for TLS Jul 13, 2018
mongorestore TOOLS-2002 rewrite createIndexes if not preserving UUID May 7, 2018
mongostat TOOLS-1822 Put copyright/license on all files Nov 1, 2017
mongotop TOOLS-1822 Put copyright/license on all files Nov 1, 2017
test TOOLS-2100 Fix orchestrated tests for 4.1+ Aug 17, 2018
vendor/src minor: revendor llmgo to defer nonce generation unless needed Jul 12, 2018
.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-1421 test sni Sep 16, 2016
CONTRIBUTING.md Update CONTRIBUTING.md to include internal work Jun 9, 2017
Godeps TOOLS-2057 Revendor mgo Jun 14, 2018
LICENSE.md TOOLS-224 add license Dec 17, 2014
README.md TOOLS-1820 Remove deprecated mongooplog tool Oct 23, 2017
THIRD-PARTY-NOTICES TOOLS-1948 Use Go-native TLS on some platforms Apr 6, 2018
binaryurl.py TOOLS-1688 use 3.6 for stable, latest for unstable Nov 20, 2017
build.bat TOOLS-1820 Remove deprecated mongooplog tool Oct 23, 2017
build.sh TOOLS-1709 build version strings via ldflags Jul 13, 2018
common-pvt.yml TOOLS-1982 Automate Atlas TLS testing Jul 25, 2018
common.yml minor: Prevent Evergreen echoing kerberos parameters Aug 15, 2018
set_gopath.bat fixed set_gopath.bat and added set_gopath.ps1, vendor.bat, and build.… Nov 6, 2015
set_gopath.ps1 fixed set_gopath.bat and added set_gopath.ps1, vendor.bat, and build.… Nov 6, 2015
set_gopath.sh TOOLS-1820 Remove deprecated mongooplog tool Oct 23, 2017
test.sh TOOLS-1999 Respect --ssl if not seen in --uri Apr 5, 2018
vendor.bat fixed set_gopath.bat and added set_gopath.ps1, vendor.bat, and build.… Nov 6, 2015
vendor.sh TOOLS-1981 Revendor mgo for SCRAM-SHA-256 support Apr 25, 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_gopath.sh (set_gopath.bat on Windows) 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.