Skip to content

Commit 3d52400

Browse files
authored
DOCSP-24948-mongorestore-nsExclude-nsInclude-precedence (#178)
* DOCSP-24948-mongorestore-nsExclude-nsInclude-precendence * internal review
1 parent abbdf4d commit 3d52400

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: source/includes/fact-nsExclude-precedence.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+
no collections from the ``prod`` namespace are restored.

Diff for: 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)