OK, so we have the mongodump tool, it has the -password option. Everything works fine, except that this simple password is displayed in the ps file to everyone.
Our database has basic user / password authentication.
The only thing I found to work is to do it
echo secretpwd | mongodump --username backup --oplog
there is no password trace in ps and it still works.
Is there a better way?
source share