I would like to use a yaml config file with mongodump command, but I was wondering how to set the uri in the yaml file when it has the following structure:
mongodb+srv://myuser:mypassword@cluster0.example.com/?authSource=admin
.
I usually run the mongodump as follow:
mongodump --uri="mongodb+srv://<user>:<password>@cluster?authSource=admin&replicaSet=myReplicateSet&w=majority&readPreference=primary&retryWrites=true&ssl=true" --db=db --collection=collection
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Data transfer from Cluster A to Cluster B via Shell | 1 | 581 | Apr 2024 |
Saving document on Vs Code not working | 4 | 321 | Jul 2024 |
MongoDB Compass 1.44 breaks SSH tunneling | 2 | 87 | Sep 2024 |
I have discovered a bug where MongoDB running on a Chinese Windows 10 system encounters an error when executing rs.status() in a replica set. | 0 | 18 | Oct 2024 |
Darshan Hiranandani : Can MongoDB Discard and Delete Batches After Processing with itcount()? | 0 | 30 | Jan 12 |