When I create backup of all databases in MongoDB (version 3):
mongodump --username bacUser --password 12345
It\'s OK. But when I try to cre
mongodump --authenticationDatabase admin -uroot -pyourpassword
here root is username and yourpassword is your password.
This command will backup/dump all database back-up in current directory.