Skip to content

Commit 34029b2

Browse files
authored
DOCSP-49213 documents db name requirement for excludeCollection options (#195)
* DOCSP-49213 documents db name requirement for excludeCollection commands * Revises wording * Fixes option name in excludeCollectionsWithPrefix * revises wording
1 parent d3a27b9 commit 34029b2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/mongodump.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,13 +770,21 @@ Options
770770

771771
Excludes the specified collection from the ``mongodump`` output.
772772
To exclude multiple collections, specify the ``--excludeCollection`` multiple times.
773+
774+
To use the ``--excludeCollection`` option, you must specify a database. You can specify
775+
a database with the :option:`--db <mongodump --db>` option or in the
776+
:option:`--uri <mongodump --uri>` connection string.
773777

774778
.. option:: --excludeCollectionsWithPrefix=<string>
775779

776780
Excludes all collections with a specified prefix from the ``mongodump``
777781
outputs. To specify multiple prefixes, specify the ``--excludeCollectionsWithPrefix`` multiple
778782
times.
779783

784+
To use the ``--excludeCollectionsWithPrefix`` option, you must specify a database. You can specify
785+
a database with the :option:`--db <mongodump --db>` option or in the
786+
:option:`--uri <mongodump --uri>` connection string.
787+
780788
.. option:: --numParallelCollections=<int>, -j=<int>
781789

782790
*Default*: 4

0 commit comments

Comments
 (0)