Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-117

Add mongorestore option to create an oplog

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongorestore
    • Labels:

      For the use case where you have a 'mongodump --oplog' backup and want to provision a new secondary from it, the steps are somewhat complex. You need to (a) mongorestore the data with --oplogReplay, (b) create an oplog, and (c) insert one document from the oplog dump in your backup into your new oplog.

      Anyway, mongorestore might as well have a flag that does steps (b) and (c), provided that oplogReplay is being done (and probably also that --drop is supplied, since terrible things would happen otherwise with gaps in the oplog).

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: