mongodump oplog doesn't work with mongorestore oplogreplay

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: Tools
    • None
    • Environment:
      all
    • ALL
    • 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

              Assignee:
              Unassigned
              Reporter:
              Sam Weaver (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: