Skip to content

Commit b8868d0

Browse files
kennethdyerjeff-allen-mongocorryroot
authored
DOCSP-13023 Connecting with srv for mongodump/mongorestore v4.2 (#57) (#99)
* DOCSP-13023 include file and replace option * DOCSP-13023 adds include * DOCSP-13023 Adds includes to notes. * Unneeded ws * Commit to force build with new settings * Adjusted include text * Whitespace change to test build * Update source/includes/srv-uri-connection.rst Co-authored-by: jeff-allen-mongo <[email protected]> * Update source/includes/srv-uri-connection.rst Co-authored-by: jeff-allen-mongo <[email protected]> * Edits from GitHub * Merge conflict * Fixes spacing in include * Fixes spacing in include * Fixes spacing in include * Fixes spacing in include * Fixes spacing in include * Fixes spacing in include * Fixes spacing in include * Fix whitespace * Update source/includes/srv-uri-connection.rst Modifies Atlas link to point to command-line tools. Co-authored-by: corryroot <[email protected]> * Updates link Co-authored-by: jeff-allen-mongo <[email protected]> Co-authored-by: corryroot <[email protected]> Co-authored-by: jeff-allen-mongo <[email protected]> Co-authored-by: corryroot <[email protected]>
1 parent 3e7bb3a commit b8868d0

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Connections to :atlas:`MongoDB Atlas </command-line-tools>` that use the ``+srv``
2+
connection string option require the |tool-opt-uri| option.

source/reference/program/mongodump.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
.. |tool-binary| replace:: mongodump
1616

17+
.. |tool-opt-uri| replace:: :option:`--uri <mongodump --uri>`
18+
1719
.. include:: /includes/admonition-mac-osx-sierra-restriction.rst
1820

1921
Synopsis
@@ -252,6 +254,7 @@ Options
252254

253255
You cannot specify both :option:`--host` and :option:`--uri`.
254256

257+
.. include:: /includes/srv-uri-connection.rst
255258

256259
.. option:: --port <port>
257260

@@ -264,6 +267,7 @@ Options
264267

265268
You cannot specify both :option:`--port` and :option:`--uri`.
266269

270+
.. include:: /includes/srv-uri-connection.rst
267271

268272
.. option:: --ipv6
269273

@@ -405,6 +409,7 @@ Options
405409

406410
You cannot specify both :option:`--username` and :option:`--uri`.
407411

412+
.. include:: /includes/srv-uri-connection.rst
408413

409414
.. option:: --password <password>, -p <password>
410415

@@ -423,6 +428,7 @@ Options
423428

424429
You cannot specify both :option:`--password` and :option:`--uri`.
425430

431+
.. include:: /includes/srv-uri-connection.rst
426432

427433
.. option:: --authenticationDatabase <dbname>
428434

@@ -433,6 +439,8 @@ Options
433439

434440
You cannot specify both :option:`--authenticationDatabase` and :option:`--uri`.
435441

442+
.. include:: /includes/srv-uri-connection.rst
443+
436444
If you do not specify an authentication database, :program:`mongodump`
437445
assumes that the database specified to export holds the user's credentials.
438446

@@ -462,6 +470,7 @@ Options
462470

463471
You cannot specify both :option:`--authenticationMechanism` and :option:`--uri`.
464472

473+
.. include:: /includes/srv-uri-connection.rst
465474

466475
.. option:: --gssapiServiceName
467476

@@ -494,9 +503,10 @@ Options
494503
files.
495504

496505
.. note::
497-
498-
You cannot specify both :option:`--db` and :option:`--uri`.
499506

507+
You cannot specify both :option:`--db` and :option:`--uri`.
508+
509+
.. include:: /includes/srv-uri-connection.rst
500510

501511
.. option:: --collection <collection>, -c <collection>
502512

source/reference/program/mongorestore.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
.. |tool-binary| replace:: mongorestore
1616

17+
.. |tool-opt-uri| replace:: :option:`--uri <mongorestore --uri>`
18+
1719
.. include:: /includes/admonition-mac-osx-sierra-restriction.rst
1820

1921
Synopsis
@@ -281,6 +283,7 @@ Options
281283

282284
You cannot specify both :option:`--host` and :option:`--uri`.
283285

286+
.. include:: /includes/srv-uri-connection.rst
284287

285288
.. option:: --port <port>
286289

@@ -293,6 +296,7 @@ Options
293296

294297
You cannot specify both :option:`--port` and :option:`--uri`.
295298

299+
.. include:: /includes/srv-uri-connection.rst
296300

297301
.. option:: --ssl
298302

@@ -424,6 +428,7 @@ Options
424428

425429
You cannot specify both :option:`--username` and :option:`--uri`.
426430

431+
.. include:: /includes/srv-uri-connection.rst
427432

428433
.. option:: --password <password>, -p <password>
429434

@@ -442,6 +447,7 @@ Options
442447

443448
You cannot specify both :option:`--password` and :option:`--uri`.
444449

450+
.. include:: /includes/srv-uri-connection.rst
445451

446452
.. option:: --authenticationDatabase <dbname>
447453

@@ -452,6 +458,7 @@ Options
452458

453459
You cannot specify both :option:`--authenticationDatabase` and :option:`--uri`.
454460

461+
.. include:: /includes/srv-uri-connection.rst
455462

456463
.. option:: --authenticationMechanism <name>
457464

@@ -474,6 +481,7 @@ Options
474481

475482
You cannot specify both :option:`--authenticationMechanism` and :option:`--uri`.
476483

484+
.. include:: /includes/srv-uri-connection.rst
477485

478486
.. option:: --gssapiServiceName
479487

0 commit comments

Comments
 (0)