diff --git a/source/tutorial/backup-with-mongodump.txt b/source/tutorial/backup-with-mongodump.txt index e5371c3865e..c8fd1d5d51b 100644 --- a/source/tutorial/backup-with-mongodump.txt +++ b/source/tutorial/backup-with-mongodump.txt @@ -176,25 +176,6 @@ database, or you may consider the :option:`mongorestore --drop` option to drop e collection from the database before restoring from backups. -.. _backup-restore-filter: - -Restore a Subset of data from a Binary Database Dump -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -:program:`mongorestore` also includes the ability to a filter -to all input before inserting it into the new database. Consider the -following example: - -.. code-block:: sh - - mongorestore --filter '{"field": 1}' - -Here, :program:`mongorestore` only adds documents to the database from -the dump located in the :file:`dump/` folder *if* the documents have a -field name ``field`` that holds a value of ``1``. Enclose the -filter in single quotes (e.g. ``'``) to prevent the filter from -interacting with your shell environment. - Restore Backups to Non-Local ``mongod`` Instances ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~