Mongodump db + users/roles

Mongodump supports a few authentication methods via –authenticationMethod but these will require a password/passphrase(X509 a possible exception)

If your concern is having the password on the command line then you can put them in a config file using
–config option.

1 Like