Skip to content

Fix --output parameter in mongoexport to --out #217

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

Merged
merged 1 commit into from
Sep 12, 2012
Merged
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
6 changes: 3 additions & 3 deletions source/reference/mongoexport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ format into a file located at ``/opt/backups/contacts.csv``.

.. code-block:: sh

mongoexport --db users --collection contacts --csv --output /opt/backups/contacts.csv
mongoexport --db users --collection contacts --csv --out /opt/backups/contacts.csv

The next example creates an export of the collection ``contacts``
from the MongoDB instance running on the localhost port number ``27017``,
Expand All @@ -187,7 +187,7 @@ with journaling explicitly enabled. This writes the export to the

.. code-block:: sh

mongoexport --db sales --collection contacts --output contacts.json --journal
mongoexport --db sales --collection contacts --out contacts.json --journal

The following example exports the collection ``contacts`` from the
``sales`` database located in the MongoDB data files located at
Expand All @@ -212,4 +212,4 @@ located on the host ``mongodb1.example.net`` running on port

.. code-block:: sh

mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --output mdb1-examplenet.json
mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --out mdb1-examplenet.json