forked from mongodb/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiargs-dbcommand-copydb-field.yaml
80 lines (78 loc) · 1.64 KB
/
apiargs-dbcommand-copydb-field.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
arg_name: field
description: |
The hostname of the source :program:`mongod` instance. Omit
to copy databases within the same :program:`mongod` instance.
interface: dbcommand
name: fromhost
operation: copydb
optional: true
position: 2
type: string
---
arg_name: field
description: |
Name of the source database.
interface: dbcommand
name: fromdb
operation: copydb
optional: false
position: 3
type: string
---
arg_name: field
description: |
Name of the target database.
interface: dbcommand
name: todb
operation: copydb
optional: false
position: 4
type: string
---
arg_name: field
description: |
Set ``slaveOK`` to ``true`` to allow :dbcommand:`copydb` to copy data from
secondary members as well as the primary. ``fromhost`` must also be
set.
interface: dbcommand
name: slaveOk
operation: copydb
optional: true
position: 5
type: boolean
---
arg_name: field
description: |
The name of the user on the ``fromhost`` MongoDB instance. The user
authenticates to the ``fromdb``.
For more information, see :ref:`copydb-access-control`.
interface: dbcommand
name: username
operation: copydb
optional: true
position: 6
type: string
---
arg_name: field
description: |
A single use shared secret generated on the remote server, i.e.
``fromhost``, using the :dbcommand:`copydbgetnonce` command.
For more information, :ref:`copydb-nonce-key`.
interface: dbcommand
name: nonce
operation: copydb
optional: true
position: 7
type: string
---
arg_name: field
description: |
A hash of the password used for authentication. For more information,
:ref:`copydb-nonce-key`.
interface: dbcommand
name: key
operation: copydb
optional: true
position: 8
type: string
...