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

mongorestore: restoreDbUsersAndRoles flag error for admin db

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Accepted
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: