First few lines of dump are actually log output:
$ mongodump -u xxx -p xxx -d database -c collection -v --out - > collection.bson
connected to: 127.0.0.1
$ head -3 collection.bson
Wed Sep 25 07:34:39.127 creating new connection to:127.0.0.1:27017
Wed Sep 25 07:34:39.128 BackgroundJob starting: ConnectBG
Wed Sep 25 07:34:39.128 connected connection!
- is duplicated by
-
SERVER-10886 tools with direct db access can produce corrupted output when dumping to stdout in "offline" mode (with --dbpath)
- Closed
- is related to
-
SERVER-10989 --quiet flag does not suppress logged info messages for tools
- Closed
-
SERVER-8713 bsondump output interferes with progress meter
- Closed