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

Clarify that using mongorestore with --oplogReplay option means you must restore the full dump

    XMLWordPrintableJSON

Details

    • 0.2

    Description

      mongorestore with --oplogReplay requires that the full dump be restored. This should be noted in the description for the --oplogReplay option. Something like:

      "--oplogReplay must restore the full dump of the replica set member. You cannot use options that limit the databases and collections being restored."

      Here is an example of the error you receive: (this with MongoDB 3.4.9)

      mongorestore  --username admin --password <redacted> --authenticationDatabase admin --oplogReplay --nsInclude foo.*
      2017-10-25T07:15:50.253-0500	Failed: cannot use --oplogReplay with includes specified
      

      Attachments

        Activity

          People

            tony.sansone@mongodb.com Anthony Sansone (Inactive)
            spencer.brown@mongodb.com Spencer Brown
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 1 week, 4 days ago