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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • Legacy C++ Implementation, 3.6.2
    • mongorestore
    • Platforms 2017-01-23
    • 2
    • 1,597

    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

        Activity

          People

            Unassigned Unassigned
            linda.qin@mongodb.com Linda Qin
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: