Skip to content

Commit df09a55

Browse files
authored
DOCSP-23883 Fixes connection example (#113)
* DOCSP-23883 Reworks mongosync examples * Adds quotes to example code * Fixes copy issue
1 parent 1808e9b commit df09a55

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

source/includes/example-connect.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ following command on one line:
4343

4444
.. code-block:: shell
4545
46-
mongosync --cluster0 mongodb://clusterAdmin:[email protected]:20020,
47-
clusterOne02.fancyCorp.com:20020,
48-
clusterOne03.fancyCorp.com:20020
49-
--cluster1 mongodb://clusterAdmin:[email protected]:20020,
50-
clusterTwo02.fancyCorp.com:20020,
51-
clusterTwo03.fancyCorp.com:20020
46+
mongosync \
47+
--cluster0 'mongodb://clusterAdmin:[email protected]:20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020' \
48+
--cluster1 'mongodb://clusterAdmin:[email protected]:20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020'
5249
5350
Atlas clusters require TLS connections. To use ``mongosync`` with Atlas
5451
clusters, you add the :urioption:`tls=true <tls>` option. For example,

source/quickstart.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,9 @@ command is reformated here for clarity):
164164

165165
.. code-block:: shell
166166

167-
./bin/mongosync --cluster0 mongodb://clusterAdmin:[email protected]:20020, \
168-
clusterOne02.fancyCorp.com:20020, \
169-
clusterOne03.fancyCorp.com:20020 \
170-
--cluster1 mongodb://clusterAdmin:[email protected]:20020, \
171-
clusterTwo02.fancyCorp.com:20020, \
172-
clusterTwo03.fancyCorp.com:20020
167+
./bin/mongosync \
168+
--cluster0 'mongodb://clusterAdmin:[email protected]:20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020' \
169+
--cluster1 'mongodb://clusterAdmin:[email protected]:20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020'
173170

174171
Initialization Notes
175172
~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)