Skip to content

Commit 7aad71b

Browse files
authored
DOCS-16353 Double Quotes for mongosync Connection Strings (#151)
1 parent 08148a5 commit 7aad71b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

source/includes/example-connect.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ following command on one line:
4444
.. code-block:: shell
4545
4646
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'
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"
4949
5050
Atlas clusters require TLS connections. To use ``mongosync`` with Atlas
5151
clusters, you add the :urioption:`tls=true <tls>` option. For example,
@@ -54,8 +54,8 @@ to connect to the ``admin`` database on ``cluster0`` and ``cluster1``:
5454
.. code-block:: shell
5555
5656
mongosync \
57-
--cluster0 'mongodb://clusterAdmin:[email protected]:20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020/admin?tls=true' \
58-
--cluster1 'mongodb://clusterAdmin:[email protected]:20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020/admin?tls=true'
57+
--cluster0 "mongodb://clusterAdmin:[email protected]:20020,clusterOne02.fancyCorp.com:20020,clusterOne03.fancyCorp.com:20020/admin?tls=true" \
58+
--cluster1 "mongodb://clusterAdmin:[email protected]:20020,clusterTwo02.fancyCorp.com:20020,clusterTwo03.fancyCorp.com:20020/admin?tls=true"
5959
6060
You can also use ``mongodb+srv`` connection strings with ``mongosync``.
6161
You do not need to add the :urioption:`tls=true <tls>` option to a
@@ -64,8 +64,8 @@ You do not need to add the :urioption:`tls=true <tls>` option to a
6464
.. code-block:: shell
6565
6666
mongosync \
67-
--cluster0 'mongodb+srv://clusterAdmin:[email protected]:20020/' \
68-
--cluster1 'mongodb+srv://clusterAdmin:[email protected]:20020/'
67+
--cluster0 "mongodb+srv://clusterAdmin:[email protected]:20020/" \
68+
--cluster1 "mongodb+srv://clusterAdmin:[email protected]:20020/"
6969
7070
For more details about ``mongodb+srv`` connection strings, see
7171
:ref:`connections-dns-seedlist`.

source/quickstart.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ command is reformated here for clarity):
165165
.. code-block:: shell
166166

167167
./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'
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"
170170

171171
Initialization Notes
172172
~~~~~~~~~~~~~~~~~~~~

source/reference/mongosync.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ Examples
263263
.. code-block:: bash
264264

265265
mongosync \
266-
--cluster0 'mongodb://192.0.2.10:27017,192.0.2.11:27017,192.0.2.12:27017' \
267-
--cluster1 'mongodb://192.0.2.20:27017,192.0.2.21:27017,192.0.2.22:27017'
266+
--cluster0 "mongodb://192.0.2.10:27017,192.0.2.11:27017,192.0.2.12:27017" \
267+
--cluster1 "mongodb://192.0.2.20:27017,192.0.2.21:27017,192.0.2.22:27017"
268268

269269
Use the appropriate connection strings for the :option:`--cluster0`
270270
and :option:`--cluster1` options so that they can connect to your

0 commit comments

Comments
 (0)