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