15 сентября, 2015

Roles required for mongodump / backups

use your-db

db.createUser({
    "user": "username",
    "pwd": "password",
    "roles": ["read", {db: "admin", role: "userAdminAnyDatabase"}]
})