From a30581e1f61d4bba9a8a6572b7d03f51349c339a Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Thu, 9 May 2013 17:33:13 -0400 Subject: [PATCH 1/2] DOCS-966 mongodump sending to stdout --- source/reference/program/mongodump.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/reference/program/mongodump.txt b/source/reference/program/mongodump.txt index af1145e1869..f72a367fab0 100644 --- a/source/reference/program/mongodump.txt +++ b/source/reference/program/mongodump.txt @@ -154,11 +154,16 @@ Options .. option:: --out , -o - 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 output the database dump to standard output, specify a ``-`` + rather than a path. This option is useful when a database dump would + consume too much disk space. You can can the disk space used by + redirecting to standard out and compressing the output into a file. + However, if you use this option, :program:`mongodump` records only + data an no metadata. .. option:: --query , -q From ada4de1dbfdaaab5309f636af304e9c9d083955f Mon Sep 17 00:00:00 2001 From: Bob Grabar Date: Fri, 10 May 2013 13:35:18 -0400 Subject: [PATCH 2/2] edits --- source/reference/program/mongodump.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/reference/program/mongodump.txt b/source/reference/program/mongodump.txt index f72a367fab0..078d4c92dc1 100644 --- a/source/reference/program/mongodump.txt +++ b/source/reference/program/mongodump.txt @@ -158,12 +158,12 @@ Options the database dump. By default, :program:`mongodump` saves output files in a directory named ``dump`` in the current working directory. - To output the database dump to standard output, specify a ``-`` - rather than a path. This option is useful when a database dump would - consume too much disk space. You can can the disk space used by - redirecting to standard out and compressing the output into a file. - However, if you use this option, :program:`mongodump` records only - data an no metadata. + 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 , -q