Skip to content

Commit 23e6e6c

Browse files
(DOCSP-39188): Clarify that restores can be at most one major version ahead (#150)
* (DOCSP-39188): Clarify that upgrades must be to one major version ahead * try new webhook * try new webhook * try new webhook * fix include * fix include version * edits * add version info to top-level dump and restore pages * wording * address review feedback * remove unneeded variable * review feedback
1 parent 5a8a4ae commit 23e6e6c

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ qe = "Queryable Encryption"
2626
version = "100.9.0"
2727
release = "{+version+}"
2828
pgp-version = "{+version+}"
29+
server-version = "7.0"
2930
pgp-fingerprint = "E162F504A20CDF15827F718D4B7C549A058F8B6B"
3031
rsa-key = "4B7C549A058F8B6B"
3132
pgp-fingerprint-fmt = "E162 F504 A20C DF15 827F 718D 4B7C 549A 058F 8B6B"

source/includes/fact-match-dump-restore-versions.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ To change your feature compatibility version, see
1414

1515
.. note::
1616

17-
You can restore the BSON files generated from ``mongodump``
18-
into MongoDB deployments running the same or newer version
19-
as the source deployment.
17+
You can restore the BSON files generated from ``mongodump`` into
18+
MongoDB deployments running the same or newer version as the source
19+
deployment. However, restoring files into a newer version deployment
20+
is not the recommended way to upgrade your deployment. To learn how to
21+
upgrade your deployment, see the :manual:`upgrade documentation
22+
</release-notes/{+server-version+}-upgrade>`.
2023

2124
This guarantee does not apply to metadata, archive, or oplog replay
2225
files. If you try to restore these files using different
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
You can restore the BSON files generated from ``mongodump`` into MongoDB
2+
deployments running the same or newer version as the source deployment.
3+
However, restoring files into a newer version deployment is not the
4+
recommended way to upgrade your deployment. To learn how to upgrade your
5+
deployment, see the :manual:`upgrade documentation
6+
</release-notes/{+server-version+}-upgrade>`.

source/mongodump.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ a database's contents. ``mongodump`` can export data from:
4848
``mongodump`` can connect to :binary:`~bin.mongod` and
4949
:binary:`~bin.mongos` instances.
5050

51+
.. include:: /includes/mongodump-restore-version-link.rst
52+
5153
Run ``mongodump`` from the system command line, not the
5254
:binary:`~bin.mongo` shell.
5355

source/mongodump/mongodump-behavior.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ to authenticate your ``mongodump`` session and to indicate the database
4444
being dumped. For an example of using a different database for
4545
authentication when using ``mongodump``, see :ref:`mongodump-auth-dump`.
4646

47+
.. _mongodump-matching-server-version:
48+
4749
Restore to Matching Server Version
4850
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4951

source/mongorestore.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ The ``mongorestore`` program loads data from either a binary
3737
database dump created by :binary:`~bin.mongodump` or the standard input
3838
into a :binary:`~bin.mongod` or :binary:`~bin.mongos` instance.
3939

40+
.. include:: /includes/mongodump-restore-version-link.rst
41+
4042
Run ``mongorestore`` from the system command line, not the
4143
:binary:`~bin.mongo` shell.
4244

@@ -864,4 +866,4 @@ Learn More
864866

865867
Compatibility and Installation </mongorestore/mongorestore-compatibility-and-installation>
866868
Behavior </mongorestore/mongorestore-behavior-access-usage>
867-
Examples </mongorestore/mongorestore-examples>
869+
Examples </mongorestore/mongorestore-examples>

0 commit comments

Comments
 (0)