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``.
178
178
179
179
.. code-block:: sh
180
180
181
- mongoexport --db users --collection contacts --csv --output /opt/backups/contacts.csv
181
+ mongoexport --db users --collection contacts --csv --out /opt/backups/contacts.csv
182
182
183
183
The next example creates an export of the collection ``contacts``
184
184
from the MongoDB instance running on the localhost port number ``27017``,
@@ -187,7 +187,7 @@ with journaling explicitly enabled. This writes the export to the
187
187
188
188
.. code-block:: sh
189
189
190
- mongoexport --db sales --collection contacts --output contacts.json --journal
190
+ mongoexport --db sales --collection contacts --out contacts.json --journal
191
191
192
192
The following example exports the collection ``contacts`` from the
193
193
``sales`` database located in the MongoDB data files located at
@@ -212,4 +212,4 @@ located on the host ``mongodb1.example.net`` running on port
212
212
213
213
.. code-block:: sh
214
214
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