File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ format into a file located at ``/opt/backups/contacts.csv``.
178178
179179.. code-block:: sh
180180
181- mongoexport --db users --collection contacts --csv --output /opt/backups/contacts.csv
181+ mongoexport --db users --collection contacts --csv --out /opt/backups/contacts.csv
182182
183183The next example creates an export of the collection ``contacts``
184184from the MongoDB instance running on the localhost port number ``27017``,
@@ -187,7 +187,7 @@ with journaling explicitly enabled. This writes the export to the
187187
188188.. code-block:: sh
189189
190- mongoexport --db sales --collection contacts --output contacts.json --journal
190+ mongoexport --db sales --collection contacts --out contacts.json --journal
191191
192192The following example exports the collection ``contacts`` from the
193193``sales`` database located in the MongoDB data files located at
@@ -212,4 +212,4 @@ located on the host ``mongodb1.example.net`` running on port
212212
213213.. code-block:: sh
214214
215- mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --output mdb1-examplenet.json
215+ mongoexport --host mongodb1.example.net --port 37017 --username user --password pass --collection contacts --db marketing --out mdb1-examplenet.json
You can’t perform that action at this time.
0 commit comments