Skip to content
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

DOCSP-24948-mongorestore-nsExclude-nsInclude-precedence #178

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions source/includes/fact-nsExclude-precedence.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
If you specify both ``--nsExclude`` and ``--nsInclude``, the pattern
that ``--nsExclude`` specifies takes precedence. For example, if you
specify both ``--nsExclude="prod.*"`` and ``--nsInclude="prod.trips"``,
no collections from the ``prod`` namespace are restored.
2 changes: 2 additions & 0 deletions source/mongorestore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ Options
You can specify :option:`--nsExclude` multiple times to exclude multiple namespace
patterns.

.. include:: /includes/fact-nsExclude-precedence.rst

.. option:: --nsInclude=<namespace pattern>

Expand All @@ -486,6 +487,7 @@ Options
For example, if the dump directory contains
``dump/test/caf%C3%A9s.bson``, specify ``--nsInclude "test.cafés"``.

.. include:: /includes/fact-nsExclude-precedence.rst

.. option:: --nsFrom=<namespace pattern>

Expand Down