Skip to content

Commit 3491359

Browse files
Anthony Sansonekay-kim
authored andcommitted
Added --nsInclude and --nsExclude to incompatible options per @SpencerBrown.
1 parent 178058b commit 3491359

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

source/includes/options-mongodump.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,13 @@ description: |
254254
{{role}} does not dump the oplog collection.
255255
256256
.. note::
257+
257258
:program:`mongodump --oplog <mongodump>` must create a full dump of a
258-
::term:`replica set` member. You cannot use :option:`--db` or
259-
::option:`--collection` with {{role}} to limit what will be dumped. If
260-
:you use either of these options with {{role}}, the dump fails and
261-
:generates an error message.
259+
:term:`replica set` member. :program:`mongodump` fails if you use any of
260+
the following options with {{role}} to limit the data to be dumped:
261+
262+
- :option:`--db`
263+
- :option:`--collection`
262264
263265
.. seealso:: :option:`mongorestore --oplogReplay <--oplogReplay>`
264266

source/includes/options-mongorestore.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,14 @@ description: |
243243
.. note::
244244
245245
:program:`mongorestore --oplogReplay <mongorestore>` must restore a full
246-
:dump of a :term:`replica set` member created using :program:`mongodump
247-
:--oplog <mongodump>`. You cannot use :option:`--db` or
248-
::option:`--collection` with {{role}} to limit what will be restored. If
249-
:you use either of these options with {{role}}, the restore fails and
250-
:generates an error message.
246+
dump of a :term:`replica set` member created using :program:`mongodump
247+
--oplog <mongodump>`. :program:`mongorestore` fails if you use any of
248+
the following options with {{role}} to limit the data be restored:
249+
250+
- :option:`--db`
251+
- :option:`--collection`
252+
- :option:`--nsInclude`
253+
- :option:`--nsExclude`
251254
252255
.. seealso:: :ref:`mongorestore Required Access <mongorestore-required-access>`
253256

0 commit comments

Comments
 (0)