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

    • # Replies:
      1
    • Last comment by Customer:
      true
    • Story Points:
      0.2
    • Sprint:
      KANBAN BUCKET

      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

              Assignee:
              tony.sansone Anthony Sansone
              Reporter:
              spencer.brown Spencer Brown
              Participants:
              Last commenter:
              Anthony Sansone
              Docs Reviewer:
              Ravind Kumar (Inactive)
              External Reviewer:
              Spencer Brown
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 43 weeks, 2 days ago
                Date of 1st Reply: