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

mongorestore: restoreDbUsersAndRoles flag error for admin db

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

      Hi

      Following TOOLS-2570

      I wondered what is the reason behind this limitation in mongorestore

      “if restore.InputOptions.RestoreDBUsersAndRoles && restore.NSOptions.DB == “admin”

      { return fmt.Errorf(“cannot use --restoreDbUsersAndRoles with the admin database”) }

      and if this should also be in docs, as there are several tickets of customers hitting this problem. I linked one of the support tickets.

      https://support.mongodb.com/case/00713063

       

      thanks

            Assignee:
            Unassigned Unassigned
            Reporter:
            irena.zaidman@mongodb.com Irena Zaidman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: