File tree Expand file tree Collapse file tree 5 files changed +31
-65
lines changed Expand file tree Collapse file tree 5 files changed +31
-65
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ If you need to preserve all rich :term: `BSON ` data types when using
2
+ :binary: `~bin.mongoexport ` to perform full instance backups, be sure to
3
+ specify :manual: `Extended JSON v2.0 (Canonical mode)
4
+ </reference/mongodb-extended-json> ` to the
5
+ :option: `--jsonFormat <mongoexport --jsonFormat> ` option to
6
+ :binary: `~bin.mongoexport `, in the following fashion:
7
+
8
+ .. code-block :: javascript
9
+
10
+ mongoexport -- jsonFormat= canonical -- collection= < coll> < connection- string>
11
+
12
+ If :option: `--jsonFormat <mongoexport --jsonFormat> ` is unspecified,
13
+ :binary: `~bin.mongoexport ` outputs data in
14
+ :manual: `Extended JSON v2.0 (Relaxed mode)
15
+ </reference/mongodb-extended-json> ` by default.
16
+
17
+ :binary: `~bin.mongoimport ` will automatically use the :term: `JSON `
18
+ format found in the specified target data file when restoring. For
19
+ example, it will use :manual: `Extended JSON v2.0 (Canonical mode)
20
+ </reference/mongodb-extended-json> ` if the target data export file was
21
+ created by :binary: `~bin.mongoexport ` with ``--jsonFormat=canonical ``
22
+ specified.
Original file line number Diff line number Diff line change @@ -281,18 +281,7 @@ Behavior
281
281
Type Fidelity
282
282
~~~~~~~~~~~~~
283
283
284
- .. include:: /includes/fact-type-fidelity-loss.rst
285
-
286
- :binary:`~bin.mongoexport`:
287
-
288
- - Outputs data in :manual:`Extended JSON v2.0 (Relaxed mode)
289
- </reference/mongodb-extended-json>` by default.
290
-
291
- - Outputs :manual:`Extended JSON v2.0 (Canonical mode)
292
- </reference/mongodb-extended-json>` if used with
293
- :option:`--jsonFormat <mongoexport --jsonFormat>`.
294
-
295
- .. include:: /includes/fact-type-fidelity-loss-example.rst
284
+ .. include:: /includes/fact-type-fidelity.rst
296
285
297
286
FIPS
298
287
~~~~
Original file line number Diff line number Diff line change @@ -84,13 +84,18 @@ The :binary:`~bin.mongoimport` command has the following form:
84
84
Behavior
85
85
--------
86
86
87
- .. include:: /includes/fact-type-fidelity-loss.rst
87
+ Type Fidelity
88
+ ~~~~~~~~~~~~~
89
+
90
+ .. include:: /includes/fact-type-fidelity.rst
88
91
89
92
JSON Format
90
93
~~~~~~~~~~~
91
94
92
- :binary:`~bin.mongoimport` requires import data to be in
93
- :manual:`Extended JSON v2.0 (Canonical or Relaxed mode)
95
+ :binary:`~bin.mongoimport` requires import data to be in either
96
+ :manual:`Extended JSON v2.0 (Canonical)
97
+ </reference/mongodb-extended-json>` or
98
+ :manual:`Extended JSON v2.0 (Relaxed)
94
99
</reference/mongodb-extended-json>` format by default. For import data
95
100
formatted using Extended JSON v1.0, specify the
96
101
:option:`--legacy <mongoimport --legacy>` option.
You can’t perform that action at this time.
0 commit comments