Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7649

mongorestore bug

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • tools

    Description

      I dumped my database with mongodump and then tried to restore it with mongorestore on other server with other mongodb installation. But I found unexpected behavior: first time when I runned mongorestore the database was restored correctly, but after I restarted mongodb server (there was need to change the bind IP), removed imported database and tried to import it again, it was imported without specified in --db argument database name but as parent directory name of backup. Then, I changed command for restore and tried again - and mongorestore restored correctly.

      I tested some variants of mongorestore command (including ommiting the --db argument and leaving the backup directory as last argument) and found that after restarting the mongodb daemon it doesn't matter what is changed in command - correct restoring is always after changing command.

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 43 weeks, 6 days ago