Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-10913

Documentation on point in time restore via mongodump

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Guides
    • None
    • 1

    Description

      Documentation on how to do point in time restore for a replicaset using mongodump is missing
      The case is:

      • I have a filesystem snapshot from time 1
      • something bad happens at time 3
      • my oplog cover operations starting from time 0

      I can perform a point in time restore:

      1. dump the current oplog (mongodump -d local -c oplog.rs)
      2. mv dump/local/oplog.rs.bson dump/oplog.bson
      3. rm -rf dump/local
      4. mongorestore --oplogReplay --oplogLimit=<seconds>

      Step 1 can be optimized in order to dump only the interested time range using mongodump option

      --query { "ts" : { "$gte" : start_sec }, "ts" : { "$lte" : end_sec } }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            renato.riccio@mongodb.com Renato Riccio
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 17 weeks ago