Skip to content

Commit e613640

Browse files
author
Sam Kleinman
committed
minor: clarifying mongodump oplog option.
1 parent d928de2 commit e613640

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

source/reference/mongodump.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,16 @@ Options
145145

146146
.. option:: --oplog
147147

148-
Use this option to ensure that the database backup you create is a
149-
consistent point-in-time snapshot of the state of a
150-
database. Without this option, changes made to the database during
151-
the update process may cause the backup to reflect an inconsistent
152-
status.
148+
Use this option to ensure that :program:`mongodump` creates a dump
149+
of the database that includes an :term:`oplog`, to create a
150+
point-in-time snapshot of the state of a MongoDB instance. To
151+
restore to a specific point-in-time backup, use the output created
152+
with this option n conjunction with :option:`mongorestore --oplogReplay`.
153+
154+
Without :option:`--oplog`, if there are write operations during the
155+
dump operation, the dump will not reflect a single moment in
156+
time. Changes made to the database during the update process can
157+
affect the output of the backup.
153158

154159
:option:`--oplog` has no effect when running :program:`mongodump`
155160
against a :program:`mongos` instance to dump the entire contents of

source/reference/mongorestore.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Options
139139

140140
.. option:: --oplogReplay
141141

142-
Replays the oplog after the data is restored to ensure that the current
142+
Replays the oplog after restoring the dump to ensure that the current
143143
state of the database reflects the point-in-time backup captured with
144144
the ":option:`mongodump --oplog`" command.
145145

0 commit comments

Comments
 (0)