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

Add mongorestore option to create an oplog

    XMLWordPrintable

    Details

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

      Description

      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).

        Attachments

          Activity

            People

            • Assignee:
              david.golden David Golden
              Reporter:
              richard.kreuter Richard Kreuter
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: