Skip to content

DOCS-4033: clarifies that --oplogReplay with sub-directory = no oplog applied #2400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/includes/options-mongorestore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ description: |
entries, you can name the file ``oplog.bson`` and move it to the top
level of the dump directory for :program:`mongorestore --oplogReplay
<mongorestore>` to replay.

When restoring with :option:`mongorestore --oplogReplay
<mongorestore>`, you must restore the full output of the
``mongodump --oplog`` process. You cannot restore from a subfolder of
a dump.

.. seealso:: :ref:`mongorestore Required Access <mongorestore-required-access>`

Expand Down Expand Up @@ -356,5 +361,9 @@ description: |
The final argument of the :program:`mongorestore` command is a
directory path. This argument specifies the location of the
database dump from which to restore.

If you are running :program:`mongorestore` with :option:`--oplogReplay`,
you must restore the whole database dump: you cannot specify a
subdirectory from which to restore.
optional: true
...