We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd983c commit 469e1c3Copy full SHA for 469e1c3
source/reference/program/mongorestore.txt
@@ -752,7 +752,15 @@ Options
752
Restore user and role definitions for the given database. See
753
:doc:`/reference/system-roles-collection` and
754
:doc:`/reference/system-users-collection` for more information.
755
-
+
756
+ .. note::
757
758
+ The :option:`--restoreDbUsersAndRoles` option cannot be used if
759
+ specifying the ``admin`` database to the :option:`--db
760
+ <mongorestore --db>` option, and attempting to do so will result
761
+ in an error. Restoring the ``admin`` database by specifying
762
+ :option:`--db admin <mongorestore --db>` to
763
+ :program:`mongorestore` already restores all users and roles.
764
765
766
.. option:: --writeConcern <document>
0 commit comments