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 |
---|---|---|---|
Building MongoDB compass for arm | 0 | 417 | Jun 2024 |
How to get inserted documents information within last 2 or 3 days on stand alone server? | 2 | 371 | Jul 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 |
A Python command-line tool and library for extracting collection schema | 0 | 56 | Nov 2024 |
MongoDB parent and child collection data loading in parallel | 0 | 24 | Feb 7 |