Skip to content

DOCS-3561 - added important callout for mongorestore and users existing ... #1987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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