Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion source/reference/program/mongorestore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,15 @@ Options
Restore user and role definitions for the given database. See
:doc:`/reference/system-roles-collection` and
:doc:`/reference/system-users-collection` for more information.


.. note::

The :option:`--restoreDbUsersAndRoles` option cannot be used if
specifying the ``admin`` database to the :option:`--db
<mongorestore --db>` option, and attempting to do so will result
in an error. Restoring the ``admin`` database by specifying
:option:`--db admin <mongorestore --db>` to
:program:`mongorestore` already restores all users and roles.


.. option:: --writeConcern <document>
Expand Down