Skip to content

Mongodump 966 #989

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 2 commits 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
15 changes: 10 additions & 5 deletions source/reference/program/mongodump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,16 @@ Options

.. option:: --out <path>, -o <path>

Specifies a directory where :program:`mongodump` will save the output
of the database dump. To output the database dump to standard output,
specify a ``-`` rather than a path.
By default, :program:`mongodump` will save output files in a
directory named ``dump`` in the current working directory.
Specifies a directory where :program:`mongodump` saves the output of
the database dump. By default, :program:`mongodump` saves output
files in a directory named ``dump`` in the current working directory.

To send the database dump to standard output, specify "``-``" instead
of a path. This can be useful as you can then redirect the output,
such as to gzip for compression. If you use this option,
:program:`mongodump` outputs only data and no metadata.
:program:`mongodump` does not output the metadata that normally would
be written to the ``metadata.json`` file.

.. option:: --query <json>, -q <json>

Expand Down