@@ -38,6 +38,14 @@ with the database itself.
3838 ":wiki:`MongoDB Extended JSON <Mongo+Extended+JSON>`" wiki page for
3939 more information about Use with care.
4040
41+ .. seealso:: See the ":doc:`/administration/backups`" document for
42+ more information on backing up MongoDB instances. Additionally,
43+ consider the following references for commands addressed in this
44+ document:
45+
46+ - :doc:`/reference/mongoexport`
47+ - :doc:`/reference/mongorestore`
48+
4149.. _bson-json-type-conversion-fidelity:
4250
4351Data Type Fidelity
@@ -117,12 +125,12 @@ JSON.
117125
118126.. seealso:: ":wiki:`MongoDB Extended JSON <Mongo+Extended+JSON>`" wiki page.
119127
120- Using Database Imports and Exports for Backups
121- ----------------------------------------------
128+ Data Import and Export and Backups Operations
129+ ---------------------------------------------
122130
123- For resilient and non-disruptive backups in most cases you'll want to
131+ For resilient and non-disruptive backups,
124132use a file system or block-level disk snapshot function, such as the
125- method described in the ":doc:`/administration/backups`" document. The
133+ methods described in the ":doc:`/administration/backups`" document. The
126134tools and operations discussed provide functionality that's useful in
127135the context of providing some kinds of backups.
128136
@@ -169,8 +177,8 @@ portion thereof, to a file in a :term:`JSON` or :term:`CSV` format.
169177These tools may also be useful for importing data into a MongoDB database
170178from third party applications.
171179
172- Database Export with :program:`mongoexport`
173- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180+ Collection Export with :program:`mongoexport`
181+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
174182
175183With the :program:`mongoexport` utility you can create a backup
176184file. In the most simple invocation, the command takes the following
@@ -200,10 +208,11 @@ that it does not interact with your shell environment. The resulting
200208documents will return on standard output.
201209
202210By default, :program:`mongoexport` returns one :term:`JSON document`
203- per MongoDB document. Specify the ":option:`--jsonArray <mongoexport
204- --jsonArrray>`" argument to return the export as a single :term:`JSON`
205- array. Use the ":option:`--csv <mongoexport --csv>`" file to return
206- the result in CSV (comma separated values) format.
211+ per MongoDB document. Specify the
212+ ":option:`--jsonArray <mongoexport --jsonArray>`" argument to return
213+ the export as a single :term:`JSON` array. Use the ":option:`--csv
214+ <mongoexport --csv>`" file to return the result in CSV (comma
215+ separated values) format.
207216
208217If your :program:`mongod` instance is not running, you can use the
209218":option:`--dbpath <mongoexport --dbpath>`" option to specify the
@@ -230,8 +239,8 @@ to connect to capture the export. Consider the following example:
230239On any :program:`mongoexport` command you may, as above specify username and
231240password credentials as above.
232241
233- Database Import with :program:`mongoimport`
234- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242+ Collection Import with :program:`mongoimport`
243+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
235244
236245To restore a backup taken with :program:`mongoexport`. Most of the
237246arguments to :program:`mongoexport` also exist for
@@ -267,11 +276,3 @@ Use the ":option:`--ignoreBlanks <mongoimport --ignoreBlanks>`" option
267276to ignore blank fields. For :term:`CSV` and :term:`TSV` imports, this
268277option provides the desired functionality in most cases: it avoids
269278inserting blank fields in MongoDB documents.
270-
271- .. seealso:: See the ":doc:`/administration/backups`" document for
272- more in depth information about backing up MongoDB
273- instances. Additionally, consider the following references for
274- commands addressed in this document:
275-
276- - :doc:`/reference/mongoexport`
277- - :doc:`/reference/mongorestore`
0 commit comments