No description, website, or topics provided.
Go JavaScript Python Other
Latest commit 6a3f2fe Feb 22, 2017 @visemet visemet TOOLS-1605 Conditionally create a Windows job object in smoke.py.
Changes smoke.py to (like resmoke.py) only create a job object if the
Python process isn't already inside of one. This allows the Evergreen
agent to create a job object for managing processes spawned by a task to
ensure they are cleaned up reliably.

These changes were adapted from
mongodb/mongo@dd6acd3.
Permalink
Failed to load latest commit information.
bsondump TOOLS-1366 explicitly ignore SIGPIPE Aug 17, 2016
common TOOLS-1549 don't require --gssapiServiceName or --gssapiHostName when… Dec 22, 2016
mongodump TOOLS-1541 properly export views Dec 1, 2016
mongoexport TOOLS-1576 move defer statements to after err checks (#80) Dec 12, 2016
mongofiles TOOLS-1576 move defer statements to after err checks (#80) Dec 12, 2016
mongoimport TOOLS-1579 fix the mongoimport progress bar Dec 16, 2016
mongooplog TOOLS-1576 move defer statements to after err checks (#80) Dec 12, 2016
mongoreplay TOOLS-1559 test with properly formatted getMore commands Dec 20, 2016
mongorestore TOOLS-1576 move defer statements to after err checks (#80) Dec 12, 2016
mongostat TOOLS-1366 explicitly ignore SIGPIPE Aug 17, 2016
mongotop TOOLS-38 use different description of --host in mongostat and mongotop Aug 5, 2016
test TOOLS-1605 Conditionally create a Windows job object in smoke.py. Feb 22, 2017
vendor/src TOOLS-1569 don't try to read the legacy reply when it's nil Dec 8, 2016
.eslintrc.yml TOOLS-1261 add linting to jstests Jun 27, 2016
.evergreen.yml TOOLS-1392 getting mongoreplay tests running Oct 26, 2016
.gitattributes Add .gitattributes - use linefeed for gpm, a bash script Sep 19, 2014
.gitignore TOOLS-1421 test sni Sep 16, 2016
CONTRIBUTING.md add link to JIRA filter in contributor guide Nov 4, 2015
Godeps TOOLS-1442 remove TLSv1_2_method, broken on s390x sles11 Sep 22, 2016
LICENSE.md TOOLS-224 add license Dec 17, 2014
README.md remove outdated docs note about 2.7 branch Jan 25, 2015
THIRD-PARTY-NOTICES TOOLS-709 Add THIRD-PARTY-NOTICES May 15, 2015
binaryurl.py TOOLS-1324 use specific architecture for server binary downloads Aug 19, 2016
build.bat fixed set_gopath.bat and added set_gopath.ps1, vendor.bat, and build.… Nov 6, 2015
build.sh Merge remote-tracking branch 'play/TOOLS-1350' Aug 23, 2016
common.yml TOOLS-1605 Conditionally create a Windows job object in smoke.py. Feb 22, 2017
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-378: create GOPATH setup scripts Jan 6, 2015
third-party-licenses MCI-2521 custom output format Jul 29, 2016
vendor.bat fixed set_gopath.bat and added set_gopath.ps1, vendor.bat, and build.… Nov 6, 2015
vendor.sh TOOLS-1390 replace the vendoring script with something useful Aug 19, 2016

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
  • 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 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.