I'm the "author" of the AutoMongoDump tool on github (github.com/
micahwedemeyer/automongobackup). I basically took the very nice
AutoMySQLDump bash script and modified it for use with MongoDB.
Thanks, by the way, for making the mongodump CLI so similar to
mysqldump. I assume that wasn't an accident.
Anyways, it seems that every time mongodump runs, it writes some debug
output (like "connected to: 127.0.0.1:27017") to stderr. The
automysqldump script is set up to count anything written to stderr as
a serious error and alert the user that the dump has probably failed.
I've hacked around this for my mongo port, assuming that everything in
stderr is just warning messages, not fatal errors. I tried playing
with analyzing the output to stderr a little, but it seemed like a bad
road to head down.
I'd like to request that if anyone chooses to refactor or work on
mongodump, please modify it only write to stderr if a serious error
occurs. That way I can update the script to alert the user in case of
serious errors.
- is depended on by
-
SERVER-9282 Audit tools for correct handling of log output
- Closed
- is duplicated by
-
SERVER-8106 bsondump writes progress to stdout
- Closed
- is related to
-
SERVER-3112 mongo* tools logs should not log to stdout (broken w/--out -)
- Closed
-
SERVER-8713 bsondump output interferes with progress meter
- Closed
-
TOOLS-152 Tools should provide way to redirect log output to a file.
- Accepted
- related to
-
TOOLS-1200 Mongodump messages could not be separated from data
- Closed
-
SERVER-9268 Use existing logging framework to standardize logging in tools
- Closed