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

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

    • 0.2

      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
      

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

              Created:
              Updated:
              Resolved:
              6 years, 21 weeks, 2 days ago