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

Can not restore users to another database using mongorestore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Major - P3
    • Resolution: Unresolved
    • Legacy C++ Implementation, 3.6.2
    • None
    • mongorestore

    Description

      1. Run mongodump -d TEST1 --dumpDbUsersAndRoles to dump data and users from database TEST1
      2. Run mongorestore -d TEST2 --restoreDbUsersAndRoles dump/TEST1/ to restore data and users to another database TEST2.
        Data will be restored to database TEST2, but the users will be restored to database TEST1.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-tools Backlog - Server Tools Team
              linda.qin@mongodb.com Linda Qin
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: