From 06078189ec30da4134ccc8806c919bacf9cdb897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Spiegel?= Date: Wed, 11 Feb 2015 17:38:57 -0500 Subject: [PATCH 1/2] Explain what --oplogReplay really does. This information is needed if you want to replay an arbitrary oplog, not just an oplog slice that was generated by mongodump --oplog. --- source/includes/options-mongorestore.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/includes/options-mongorestore.yaml b/source/includes/options-mongorestore.yaml index d3d5f33e100..7c7fd338d84 100644 --- a/source/includes/options-mongorestore.yaml +++ b/source/includes/options-mongorestore.yaml @@ -257,6 +257,15 @@ description: | current state of the database reflects the point-in-time backup captured with the ":option:`mongodump --oplog`" command. For an example of {{role}}, see :ref:`backup-restore-oplogreplay`. + + The find the oplog entries it should replay, mongorestore looks for a + file named oplog.bson immediately below the dump directory. This is + where ":option:`mongodump --oplog`" places the oplog that it generates, + but you can place any oplog there, for example a dump of an existing + oplog that you created with mongodump (in this case, the oplog will likely + be dumped under the name oplog.rs.bson, and you will have to rename it to + oplog.bson and place it into the top-level directory of the dump in + order for mongorestore to replay it). optional: true --- program: mongorestore From 5b08c76905c110b5e731cad01b75053ef5876a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Spiegel?= Date: Wed, 11 Feb 2015 22:49:47 -0500 Subject: [PATCH 2/2] Fix typo --- source/includes/options-mongorestore.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/includes/options-mongorestore.yaml b/source/includes/options-mongorestore.yaml index 7c7fd338d84..94df09f42a8 100644 --- a/source/includes/options-mongorestore.yaml +++ b/source/includes/options-mongorestore.yaml @@ -258,7 +258,7 @@ description: | with the ":option:`mongodump --oplog`" command. For an example of {{role}}, see :ref:`backup-restore-oplogreplay`. - The find the oplog entries it should replay, mongorestore looks for a + To find the oplog entries it should replay, mongorestore looks for a file named oplog.bson immediately below the dump directory. This is where ":option:`mongodump --oplog`" places the oplog that it generates, but you can place any oplog there, for example a dump of an existing