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

Documentation on point in time restore via mongodump

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Guides
    • Labels:
      None
    • 1

      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 } }
      

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

              Created:
              Updated:
              Resolved:
              6 years, 27 weeks, 2 days ago