Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9536

mongodump oplog doesn't work with mongorestore oplogreplay

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      all
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      You must actually dump the oplog using mongodump -d local -c oplog.rs which will create a folder called local with oplog.rs.bson in it.

      However, when you do a mongorestore --oplogreplay, it will look for a file called oplog.bson which is only created by doing a mongodump --oplog. So you actually need to name the oplog.rs.bson to oplog.bson and move it up a directory for this to work which is very messy.

      If mongorestore can't find oplog.bson it will tell you to use mongodump --oplog which is just plain wrong.

      Show
      You must actually dump the oplog using mongodump -d local -c oplog.rs which will create a folder called local with oplog.rs.bson in it. However, when you do a mongorestore --oplogreplay, it will look for a file called oplog.bson which is only created by doing a mongodump --oplog. So you actually need to name the oplog.rs.bson to oplog.bson and move it up a directory for this to work which is very messy. If mongorestore can't find oplog.bson it will tell you to use mongodump --oplog which is just plain wrong.

      Description

      Using mongodump --oplog does not work with mongorestore --oplogreplay.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sam.weaver Sam Weaver
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: