Skip to content

Commit

Permalink
DOCSP-24948-mongorestore-nsExclude-nsInclude-precedence (#178)
Browse files Browse the repository at this point in the history
* DOCSP-24948-mongorestore-nsExclude-nsInclude-precendence

* internal review
  • Loading branch information
jmd-mongo authored Dec 3, 2024
1 parent abbdf4d commit 3d52400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 3d52400

Please sign in to comment.