Can anyone indicate the right way to backup a MongoDB database with mongodump
?
I have tried:
mongodump --host "cluster0-shard-00-00-2djno.mongodb.net:27017,cluster0-shard-00-01-2djno.mongodb.net:27017,cluster0-shard-00-02-2djno.mongodb.net:27017" \
--authenticationDatabase admin --ssl --username admin \
--password mypassword -o /tmp
When I do that I get:
Failed: error connecting to db server: no reachable servers
Verifying connection to an individual node with both the ping
and telnet
commands such that these nodes are valid.
The mongodump
version is 3.2.13.