okay so we we have the mongodump tool, it has --password option. Everything works great except this plain password is visible in ps output to everybody.
our database has plain user/password authentication.
The only thing that I found to work is doing like this
echo secretpwd | mongodump --username backup --oplog
no trace of password in ps and still working.
Is there any better way?