Skip to content

Commit fddc8d7

Browse files
kennethdyerjeff-allen-mongocorryroot
authored
DOCSP-13023 Connecting with srv for mongodump/mongorestore v4.2 (#57)
* 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]>
1 parent d29ab75 commit fddc8d7

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
@@ -17,6 +17,8 @@
1717

1818
.. |tool-binary| replace:: ``mongodump``
1919

20+
.. |tool-opt-uri| replace:: :option:`--uri <mongodump --uri>`
21+
2022
.. include:: /includes/admonition-mac-osx-sierra-restriction.rst
2123

2224
.. include:: /includes/extracts/migration-to-database-tools-mongodump.rst
@@ -429,6 +431,7 @@ Options
429431

430432
You cannot specify both :option:`--host` and :option:`--uri`.
431433

434+
.. include:: /includes/srv-uri-connection.rst
432435

433436
.. option:: --port=<port>
434437

@@ -441,6 +444,7 @@ Options
441444

442445
You cannot specify both :option:`--port` and :option:`--uri`.
443446

447+
.. include:: /includes/srv-uri-connection.rst
444448

445449
.. option:: --ipv6
446450

@@ -557,6 +561,7 @@ Options
557561

558562
You cannot specify both :option:`--username` and :option:`--uri`.
559563

564+
.. include:: /includes/srv-uri-connection.rst
560565

561566
.. option:: --password=<password>, -p=<password>
562567

@@ -572,6 +577,7 @@ Options
572577

573578
You cannot specify both :option:`--password` and :option:`--uri`.
574579

580+
.. include:: /includes/srv-uri-connection.rst
575581

576582
.. option:: --authenticationDatabase=<dbname>
577583

@@ -582,6 +588,8 @@ Options
582588

583589
You cannot specify both :option:`--authenticationDatabase` and :option:`--uri`.
584590

591+
.. include:: /includes/srv-uri-connection.rst
592+
585593
If you do not specify an authentication database, :program:`mongodump`
586594
assumes that the database specified to export holds the user's credentials.
587595

@@ -611,6 +619,7 @@ Options
611619

612620
You cannot specify both :option:`--authenticationMechanism` and :option:`--uri`.
613621

622+
.. include:: /includes/srv-uri-connection.rst
614623

615624
.. option:: --gssapiServiceName
616625

@@ -639,9 +648,10 @@ Options
639648
files.
640649

641650
.. note::
642-
643-
You cannot specify both :option:`--db` and :option:`--uri`.
644651

652+
You cannot specify both :option:`--db` and :option:`--uri`.
653+
654+
.. include:: /includes/srv-uri-connection.rst
645655

646656
.. option:: --collection=<collection>, -c=<collection>
647657

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
.. include:: /includes/extracts/migration-to-database-tools-mongorestore.rst
@@ -319,6 +321,7 @@ Options
319321

320322
You cannot specify both :option:`--host` and :option:`--uri`.
321323

324+
.. include:: /includes/srv-uri-connection.rst
322325

323326
.. option:: --port=<port>
324327

@@ -331,6 +334,7 @@ Options
331334

332335
You cannot specify both :option:`--port` and :option:`--uri`.
333336

337+
.. include:: /includes/srv-uri-connection.rst
334338

335339
.. option:: --ssl
336340

@@ -437,6 +441,7 @@ Options
437441

438442
You cannot specify both :option:`--username` and :option:`--uri`.
439443

444+
.. include:: /includes/srv-uri-connection.rst
440445

441446
.. option:: --password=<password>, -p=<password>
442447

@@ -452,6 +457,7 @@ Options
452457

453458
You cannot specify both :option:`--password` and :option:`--uri`.
454459

460+
.. include:: /includes/srv-uri-connection.rst
455461

456462
.. option:: --authenticationDatabase=<dbname>
457463

@@ -462,6 +468,7 @@ Options
462468

463469
You cannot specify both :option:`--authenticationDatabase` and :option:`--uri`.
464470

471+
.. include:: /includes/srv-uri-connection.rst
465472

466473
.. option:: --authenticationMechanism=<name>
467474

@@ -484,6 +491,7 @@ Options
484491

485492
You cannot specify both :option:`--authenticationMechanism` and :option:`--uri`.
486493

494+
.. include:: /includes/srv-uri-connection.rst
487495

488496
.. option:: --gssapiServiceName=<serviceName>
489497

0 commit comments

Comments
 (0)