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

mongodump oplog doesn't work with mongorestore oplogreplay

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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.

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

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

              Created:
              Updated:
              Resolved: