Skip to content
Closed
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
8 changes: 8 additions & 0 deletions source/includes/options-mongorestore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ args: null
description: |
Modifies the restoration procedure to drop every collection from the
target database before restoring the collection from the dumped backup.

.. important::
When ``--drop`` is specified, all users are removed and replaced with
users defined in the dump file to be restored. Therefore if the user
credentials specified as arguments to :program:`mongorestore` do not
correspond to a user that exists in the dump file, the restoration process
will fail, leaving an empty database.

optional: true
---
program: mongorestore
Expand Down