@@ -44,8 +44,8 @@ following command on one line:
44
44
.. code-block :: shell
45
45
46
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'
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"
49
49
50
50
Atlas clusters require TLS connections. To use ``mongosync `` with Atlas
51
51
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``:
54
54
.. code-block :: shell
55
55
56
56
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"
59
59
60
60
You can also use ``mongodb+srv `` connection strings with ``mongosync ``.
61
61
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
64
64
.. code-block :: shell
65
65
66
66
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/"
69
69
70
70
For more details about ``mongodb+srv `` connection strings, see
71
71
:ref: `connections-dns-seedlist `.
0 commit comments