Skip to content

Commit c262f06

Browse files
author
Sam Kleinman
committed
DOCS-282: minor edits.
1 parent d4c3b95 commit c262f06

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

source/tutorial/copy-databases-between-instances.txt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ MongoDB provides the :dbcommand:`copydb` and :dbcommand:`clone`
1111
:term:`database commands <database command>` to support migrations of
1212
entire logical databases between :program:`mongod` instances. With
1313
these commands you can copy data between instances with a simple
14-
interface without the need for an intermediate stage.
14+
interface without the need for an intermediate stage. The
15+
:method:`db.cloneDatabase()` and :method:`db.copyDatabase()` provide
16+
helpers for these operations in the :program:`mongod` shell.
1517

1618
Data migrations that require an intermediate stage or that involve
1719
more than one database instance are beyond the scope of this
@@ -20,9 +22,9 @@ for use cases that resemble the following use cases:
2022

2123
- data migrations,
2224

23-
- data warehousing, and
25+
- data warehousing, and
2426

25-
- seeding test environments.
27+
- seeding test environments.
2628

2729
Also consider the :doc:`/administration/backups` and
2830
:doc:`/administration/import-export` documentation for more related
@@ -81,7 +83,7 @@ rename it to ``records`` in the process:
8183
- Connect to the destination server, running on the
8284
``db1.example.net`` host, using the :program:`mongo` shell.
8385

84-
- Model your operation on the following command:
86+
- Model your operation on the following command:
8587

8688
.. code-block:: javascript
8789

@@ -91,18 +93,18 @@ Rename a Database
9193
~~~~~~~~~~~~~~~~~
9294

9395
You can also use :dbcommand:`copydb` or the
94-
:method:`db.copyDatabase()` helper to:
96+
:method:`db.copyDatabase()` helper to:
9597

96-
- rename a database within a single MongoDB instance or
98+
- rename a database within a single MongoDB instance or
9799

98100
- create a duplicate database for testing purposes.
99101

100102
Use the following procedure to rename the ``test`` database
101-
``records`` on a single :program:`mongod` instance:
103+
``records`` on a single :program:`mongod` instance:
102104

103105
- Connect to the :program:`mongod` using the :program:`mongo` shell.
104106

105-
- Model your operation on the following command:
107+
- Model your operation on the following command:
106108

107109
.. code-block:: javascript
108110

@@ -163,9 +165,9 @@ You can use the following procedure to clone a database from the
163165
.. code-block:: javascript
164166

165167
use records
166-
168+
167169
- Use the following operation to initiate the :dbcommand:`clone`
168-
operation:
170+
operation:
169171

170172
.. code-block:: javascript
171173

0 commit comments

Comments
 (0)