Skip to content

Commit e3b3502

Browse files
committed
DOCSP-24948-mongorestore-nsExclude-nsInclude-precendence
1 parent abbdf4d commit e3b3502

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
If you specify both ``--nsExclude`` and ``--nsInclude``, the pattern
2+
that ``--nsExclude`` specifies takes precedence. For example, if you
3+
specify both ``--nsExclude="prod.*"`` and ``--nsInclude="prod.trips"``,
4+
the pattern specified by ``--nsExclude`` takes precedence and no
5+
collections from the ``prod`` namespace are restored.

source/mongorestore.txt

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ Options
461461
You can specify :option:`--nsExclude` multiple times to exclude multiple namespace
462462
patterns.
463463

464+
.. include:: /includes/fact-nsExclude-precedence.rst
464465

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

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

490+
.. include:: /includes/fact-nsExclude-precedence.rst
489491

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

0 commit comments

Comments
 (0)