@@ -56,17 +56,17 @@ Considerations
56
56
Processes
57
57
---------
58
58
59
- Copy and Rename a Database to Another Server
60
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
+ Copy and Rename a Database to another ``mongod``
60
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61
61
62
- Use the :dbcommand:`copydb` command, or the :func:`db.copyDatabase()`
63
- helper in the :program:`mongo` shell, to transfer a database from one
64
- MongoDB instance to another: for instance seeding a development
65
- environment or establishing a testing system.
62
+ To transfer a database from one MongoDB instance to another, use the
63
+ :dbcommand:`copydb` command, or the :func:`db.copyDatabase()` helper
64
+ in the :program:`mongo` shell. Possible uses include instance seeding
65
+ a development environment and establishing a testing system.
66
66
67
- To copy the database named ``test`` on server ``db0.example.net`` to
68
- the server named ``db1.example.net`` and rename it to ``records``, use
69
- the following procedure:
67
+ Copy the database named ``test`` on server ``db0.example.net`` to
68
+ the server named ``db1.example.net`` and rename it to ``records``
69
+ using the following procedure:
70
70
71
71
- Verify that the database, ``test`` exists on the source
72
72
:program:`mongod` instance running on the ``db0.example.net`` host.
@@ -83,13 +83,13 @@ the following procedure:
83
83
Rename a Database
84
84
~~~~~~~~~~~~~~~~~
85
85
86
- Use the :dbcommand:`copydb` command, or the :func:`db.copyDatabase()`
87
- helper in the :program:`mongo` shell, to copy a database within the
88
- same server also renaming the database . You may use this to correct a
86
+ To copy a database within the same server also renaming the database,
87
+ use the :dbcommand:`copydb` command, or the :func:`db.copyDatabase()`
88
+ helper in the :program:`mongo` shell . You may use this to correct a
89
89
misnamed database or to support a testing process.
90
90
91
- To rename a database from ``test`` to ``records`` on the a
92
- :program:`mongod` instance, use the following procedure:
91
+ Rename a database from ``test`` to ``records`` on the a
92
+ :program:`mongod` instance using the following procedure:
93
93
94
94
- Connect to the :program:`mongod` using the :program:`mongo` shell.
95
95
@@ -102,15 +102,15 @@ To rename a database from ``test`` to ``records`` on the a
102
102
Copy a Database with Authentication
103
103
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104
104
105
- If the source server has :setting:`auth` enabled, you can include
106
- these parameters in the :dbcommand:`copydb` command, or as arguments
107
- to the :func:`db.copyDatabase()` helper in the :program:`mongo`
108
- shell.
105
+ If the source server has :setting:`auth` enabled, and you want to copy
106
+ a database from this instance, you can include these parameters in the
107
+ :dbcommand:`copydb` command, or as arguments to the
108
+ :func:`db.copyDatabase()` helper in the :program:`mongo` shell.
109
109
110
- To copy ``test`` to ``records`` from the :program:`mongod` running on
110
+ Copy ``test`` to ``records`` from the :program:`mongod` running on
111
111
``db0.example.net``, which requires authentication for all
112
112
connections, to the :program:`mongod` instance running on
113
- ``db1.example.net`` use the following procedure:
113
+ ``db1.example.net`` using the following procedure:
114
114
115
115
- Connect to the destination :program:`mongod` instance running on the
116
116
``db1.example.net`` host using the :program:`mongo` shell.
@@ -131,9 +131,9 @@ database name on the destination server. For many operations,
131
131
than :dbcommand:`copydb`. The :func:`db.cloneDatabase()` helper in the
132
132
:program:`mongo` shell provides a wrapper around :dbcommand:`clone`.
133
133
134
- To clone a database from `the :program:`mongod` running on
134
+ Clone a database from `the :program:`mongod` running on
135
135
`db0.example.net`` to the :program:`mongod` running on
136
- ``db1.example.net``, use the following procedure:
136
+ ``db1.example.net`` using the following procedure:
137
137
138
138
- Connect to the destination :program:`mongod` instance running on the
139
139
``db1.example.net`` host using the :program:`mongo` shell.
0 commit comments