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

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

    XMLWordPrintable

Details

    • 0.2
    • KANBAN BUCKET
    • true

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 1 week, 1 day ago