From e6a5b6d704eafde7050377eefa4b161b800d9773 Mon Sep 17 00:00:00 2001 From: Michael Paik Date: Mon, 15 Sep 2014 17:44:48 -0400 Subject: [PATCH] DOCS-3561 - added important callout for mongorestore and users existing in dumps --- source/includes/options-mongorestore.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/includes/options-mongorestore.yaml b/source/includes/options-mongorestore.yaml index 2117127b35d..3cc50e77e25 100644 --- a/source/includes/options-mongorestore.yaml +++ b/source/includes/options-mongorestore.yaml @@ -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