Skip to content

Commit

Permalink
DOCSP-45578-no-QE-support (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhuh-mdb authored Nov 26, 2024
1 parent c88812f commit abbdf4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
4 changes: 4 additions & 0 deletions source/mongodump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ Run ``mongodump`` from the system command line, not the

``mongodump`` dumps data to a directory or a binary archive file.

.. important::

You can't use ``mongodump`` with a collection that uses {+qe+}.

Dump Data to a Directory
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
6 changes: 4 additions & 2 deletions source/mongorestore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Run ``mongorestore`` from the system command line, not the
MongoDB doesn't support running multiple ``mongorestore`` programs concurrently
for the same collection.

.. important::

You can't use ``mongorestore`` with a collection that uses {+qe+}.

.. include:: /includes/fact-migrate-atlas.rst

Expand Down Expand Up @@ -803,8 +806,7 @@ Options

Enables ``mongorestore`` to bypass :manual:`document validation </core/schema-validation>`
during the operation. This lets you insert documents that do not
meet the validation requirements. This option is required if you are
restoring a {+qe+} enabled collection.
meet the validation requirements.

.. _mongorestore-path-option:

Expand Down
17 changes: 0 additions & 17 deletions source/mongorestore/mongorestore-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,6 @@ Alternatively, you can restore a specific collection using the
2019-06-30T12:21:44.987-0400 finished restoring test.purchaseorders (6 documents, 0 failures)
2019-06-30T12:21:44.987-0400 6 document(s) restored successfully. 0 document(s) failed to restore.

Restore a {+qe+} Enabled Collection
------------------------------------------------------------------------

{+qe+} adds a ``__safeContent__`` field to documents in an encrypted
collection and blocks insert and update operations on those
documents unless document validation is disabled. To restore a
collection that includes encrypted fields, use
:option:`--bypassDocumentValidation <mongorestore --bypassDocumentValidation>`.

:binary:`~bin.mongodump` exports a {+qe+} enabled collection's
associated metadata collections. Running ``mongorestore`` restores these collections as well.


.. code-block:: sh

mongorestore --db=test --collection=personaldata dump/test/personaldata.bson --bypassDocumentValidation

.. _example-basic-wildcard-usage:

Restore Collections Using Wild Cards
Expand Down

0 comments on commit abbdf4d

Please sign in to comment.