The MongoDB Database Tools are a collection of command-line utilities
for working with a MongoDB deployment.
The Database Tools include the following binaries:
- 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
See also: https://github.com/mongodb/mongo-tools
===> The following configuration options are available for mongodb-tools-100.20.0:
DOCS=on: Build and/or install documentation
====> Options available for the multi SECURITY: you have to choose at least one of them
SASL=on: SASL authentication support
SSL=on: SSL protocol support
====> Options available for the multi TOOLS: you have to choose at least one of them
BSONDUMP=on: BSON files into human-readable formats
MONGODUMP=on: BSON data from the contents of a MongoDB instance
MONGOEXPORT=on: JSON or CSV export of MongoDB instance data
MONGOFILES=on: Interface to GridFS in a MongoDB instance
MONGOIMPORT=on: Importing JSON, CSV, or TSV into a MongoDB instance
MONGORESTORE=on: BSON data to a MongoDB instance
MONGOSTAT=on: Status of a running mongod or mongos instance
MONGOTOP=on: Track the amount of data I/O time
===> Use 'make config' to modify these settings
databases/mongodb-tools: 100.20.0
Changes:
https://github.com/mongodb/mongo-tools/blob/master/CHANGELOG.md#100200
The test files are renamed from foo_test.go to foo_unit_test.go. This makes that
"make test" does not find any tests.
[00:00:32] ===> Testing ./...
[00:01:02] ? github.com/mongodb/mongo-tools [no test files]
[00:01:04] ? github.com/mongodb/mongo-tools/bsondump [no test files]
...
[00:01:06] testing: warning: no tests to run
[00:01:06] PASS
Let's see if this gets resolved in a future release or maybe somebody has a hint
for me for go tests in the ports framework.
databases/mongodb-tools: unpin go version
Dodges the deprecation.
Unfortunately the tests fail if go.mod does not match the go pkg
version. Documented this in the Makefile.
Fixes: f45b1d07f50b64cebbcd416af8d7ddf265db3de1 "many: Unsupported Go dep;
deprecate and schedule for removal"
many: Unsupported Go dep; deprecate and schedule for removal
There are about 75 ports that depend on old, unsupported Go
versions. I've scheduled those Go versions for deletions on
2025/01/01, and so these ports are scheduled for removal on
that same day.
HOWEVER....
Likely NONE or VERY VERY FEW of these ports will actually need
to be deleted! This stems from a misunderstanding:
When go.mod says "go 1.23", it means that it requires AT LEAST
go-1.23. Locking a port to a specific go version should almost
never happen; it is reserved for when a package absolutely
(Only the first 15 lines of the commit message are shown above )
databases/mongodb-tools: use go 1.23
By reading some of the fixed issues in the last release I found
that the go version was bumped upstream.
Although it builds and runs fine I let the port follow.
Add a pre-configure check that the port uses the same go version
as is mentioned in go.mod.
databases/mongodb-tools: 100.12.0
"This version adds support for MongoDB Server 8.1, along with security updates
and bug fixes."
Changes:
https://github.com/mongodb/mongo-tools/blob/master/CHANGELOG.md#100120
Security: CVE-2025-30204 jwt/v5@v5.2.1
Security: CVE-2025-22870 net@v0.34.0
Security: CVE-2025-22869 crypto@v0.32.0
databases/mongodb-tools: no reason to limit archs
As long as all dependencies build this port will build also.
+ remove mongodb36-tools conflict, the port was removed just before 2023Q2.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
New port: databases/mongodb-tools
According to https://docs.mongodb.com/database-tools/#versioning
the versioning of mongodb-tools changed. One version of mongodb-tools
for all future mongodb versions.
- removed mongoreplay: it does not exist (anymore)
- enabled all tools: I don't know the history why these were not enabled
- builds and runs on aarch64
- Add WWW to official documentation
--------
Useful utilities for managing a MongoDB instance written in Go.
- bsondump - display BSON files in a human-readable format
(Only the first 15 lines of the commit message are shown above )