Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2484

Improve User/Role restore and selectivity

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongorestore
    • None

      There is currently no way of restoring users and roles to new databases with mongorestore. --nsFrom and --nsTo don't affect user restore.

      Related: https://jira.mongodb.org/browse/TOOLS-104

      The situation with --db with --restoreDbUsersAndRoles is a bit more complicated now that --nsInclude and the related options have been added. --db is now only meant to be used to describe which database a single bson file should be restored into. So --restoreDbUsersAndRoles really shouldn't require it at all anymore. We need to rationalize exactly what behavior we expect and then implement it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tim.fogarty@mongodb.com Tim Fogarty
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: