Skip to content

Commit 1d19162

Browse files
committed
DOCS-11923: 4.2 remove clone and copydb and shell helpers for 4.0 and earlier
1 parent 049d9a1 commit 1d19162

20 files changed

+94
-662
lines changed

source/faq/concurrency.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ lock at the database level for extended periods:
264264
* - :dbcommand:`convertToCapped`
265265
-
266266

267-
* - :dbcommand:`copydb`. This operation may lock all databases. See
268-
:ref:`faq-concurrency-lock-multiple-dbs`.
269-
270-
- :method:`db.copyDatabase()`. This operation may lock all
271-
databases. See :ref:`faq-concurrency-lock-multiple-dbs`.
272-
273267
* - :dbcommand:`create` when creating a very large (i.e. many
274268
gigabytes) capped collection
275269
- :method:`db.createCollection()` when creating a very large (i.e.

source/includes/3.6-featureCompatibility-copy-data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ version, you cannot copy data between that instance and a
4545
Operations that copy data include:
4646

4747
- :method:`db.cloneCollection()` and the command :dbcommand:`cloneCollection`
48-
- :method:`db.cloneDatabase()` and the command :dbcommand:`clone`
49-
- :method:`db.copyDatabase()` and the command :dbcommand:`copydb`
48+
- :v3.6:`db.cloneDatabase() </reference/method/db.cloneDatabase>` and the command :v3.6:`clone </reference/command/clone>`
49+
- :v3.6:`db.copyDatabase() </reference/method/db.copyDatabase>` and the command :v3.6:`copydb </reference/command/copydb>`
5050

source/includes/apiargs-command-clone-fields.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

source/includes/apiargs-dbcommand-copydb-field.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

source/includes/apiargs-method-db.copyDatabase-param.yaml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
1+
name: fromdb
12
arg_name: param
23
interface: method
34
operation: db.copyDatabase
45
position: 1
5-
source:
6-
file: apiargs-dbcommand-copydb-field.yaml
7-
ref: fromdb
6+
description: |
7+
Name of the source database.
8+
type: string
89
---
10+
name: todb
911
arg_name: param
1012
interface: method
1113
operation: db.copyDatabase
1214
position: 2
13-
source:
14-
file: apiargs-dbcommand-copydb-field.yaml
15-
ref: todb
15+
description: |
16+
Name of the target database.
17+
type: string
1618
---
19+
name: fromhost
1720
arg_name: param
1821
interface: method
1922
operation: db.copyDatabase
2023
position: 3
21-
source:
22-
file: apiargs-dbcommand-copydb-field.yaml
23-
ref: fromhost
24+
description: |
25+
The hostname of the source :binary:`~bin.mongod` instance. Omit
26+
to copy databases within the same :binary:`~bin.mongod` instance.
27+
type: string
28+
optional: true
2429
---
2530
arg_name: param
2631
interface: method
@@ -30,7 +35,8 @@ description: |
3035
The name of the user on the ``fromhost`` MongoDB instance. The user
3136
authenticates to the ``fromdb``.
3237
33-
For more information, see :ref:`copyDatabase-access-control`.
38+
For more information, refer to the 4.0 or earlier version of the
39+
manual.
3440
position: 4
3541
optional: true
3642
type: string
@@ -40,7 +46,9 @@ description: |
4046
The password on the ``fromhost`` for authentication. The method does
4147
**not** transmit the password in plaintext.
4248
43-
For more information, see :ref:`copyDatabase-access-control`.
49+
For more information, refer to the 4.0 or earlier version of the
50+
manual.
51+
4452
interface: method
4553
name: password
4654
operation: db.copyDatabase

source/includes/extracts-fact-copydb-behavior-base.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

source/includes/extracts-fact-copydb-behavior.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

source/includes/ref-toc-command-administration.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: ":dbcommand:`clean`"
22
file: /reference/command/clean
33
description: "Internal namespace administration command."
44
---
5-
name: ":dbcommand:`clone`"
6-
file: /reference/command/clone
7-
description: "*Deprecated*. Copies a database from a remote host to the current host."
8-
---
95
name: ":dbcommand:`cloneCollection`"
106
file: /reference/command/cloneCollection
117
description: "Copies a collection from a remote host to the current host."
@@ -30,10 +26,6 @@ name: ":dbcommand:`convertToCapped`"
3026
file: /reference/command/convertToCapped
3127
description: "Converts a non-capped collection to a capped collection."
3228
---
33-
name: ":dbcommand:`copydb`"
34-
file: /reference/command/copydb
35-
description: "*Deprecated*. Copies a database from a remote host to the current host."
36-
---
3729
name: ":dbcommand:`create`"
3830
file: /reference/command/create
3931
description: "Creates a collection or a view."

source/includes/ref-toc-method-database.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ description: "Copies data directly between MongoDB instances. Wraps :dbcommand:`
1212
---
1313
name: ":method:`db.cloneDatabase()`"
1414
file: /reference/method/db.cloneDatabase
15-
description: "*Deprecated*. Copies a database from a remote host to the current host. Wraps :dbcommand:`clone`."
15+
description: "*Deprecated*. Copies a database from a remote host to the current host when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later."
1616
---
1717
name: ":method:`db.commandHelp()`"
1818
file: /reference/method/db.commandHelp
1919
description: "Returns help information for a :term:`database command`."
2020
---
2121
name: ":method:`db.copyDatabase()`"
2222
file: /reference/method/db.copyDatabase
23-
description: "*Deprecated*. Copies a database to another database on the current host. Wraps :dbcommand:`copydb`."
23+
description: "*Deprecated*. Copies a database to another database on the current host when run against MongoDB 4.0 or earlier. Unsupported when run against MongoDB 4.2 or later."
2424
---
2525
name: ":method:`db.createCollection()`"
2626
file: /reference/method/db.createCollection

source/reference/command/clone.txt

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)