Skip to content

Commit

Permalink
DOCSP-38268 Remove Additional Piping Example (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianf-mongodb authored Apr 16, 2024
1 parent e0cd0cf commit b1b5e09
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions source/mongodump/mongodump-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,6 @@ of the ``test`` database.

mongodump --archive=test.20150715.archive --db=test

.. _mongodump-example-archive-stdout:

Output an Archive to Standard Output
------------------------------------

To output the archive to the standard output stream in order to pipe to
another process, run ``mongodump`` with the ``archive``
option but *omit* the filename:

.. code-block:: sh

mongodump --archive --db=test --port=27017 | mongorestore --archive --port=27018

.. note::

You cannot use the ``--archive`` option with the
:option:`--out <mongodump --out>` option.

.. _mongodump-example-gzip:

Compress the Output
Expand Down

0 comments on commit b1b5e09

Please sign in to comment.