19
19
Synopsis
20
20
--------
21
21
22
- The :binary:`~bin.mongorestore` program writes data from a binary database
23
- dump created by :binary:`~bin.mongodump` to a MongoDB instance.
24
-
25
- .. versionadded:: 3.0.0 :binary:`~bin.mongorestore` also accepts data to
26
- restore via the standard input.
27
-
28
- :binary:`~bin.mongorestore` can write data to either :binary:`~bin.mongod` or
29
- :binary:`~bin.mongos` instances.
22
+ The :binary:`~bin.mongorestore` program loads data from either a binary
23
+ database dump created by :binary:`~bin.mongodump` or the standard input
24
+ (starting in version 3.0.0) into a :binary:`~bin.mongod` or
25
+ :binary:`~bin.mongos` instance.
30
26
31
27
.. include:: /includes/extracts/require-cmd-line-mongorestore.rst
32
28
@@ -52,6 +48,20 @@ Rebuild Indexes
52
48
:binary:`~bin.mongorestore` recreates indexes recorded by
53
49
:binary:`~bin.mongodump`.
54
50
51
+ .. note::
52
+
53
+ Starting in MongoDB 2.6, creating indexes will :ref:`error if an
54
+ index key in an existing document exceeds the limit
55
+ <2.6-index-key-length-incompatibility>`. See
56
+ :ref:`2.6-index-key-length-incompatibility` for more information and
57
+ solution.
58
+
59
+ If you have an existing data set that violates this limit but want
60
+ to resolve the index issue after restoring the data, you can disable
61
+ the default index key length validation on the target database by
62
+ setting the :program:`mongod` instance's
63
+ :parameter:`failIndexKeyTooLong` parameter to false.
64
+
55
65
Version Compatibility
56
66
~~~~~~~~~~~~~~~~~~~~~
57
67
0 commit comments