I’d like to backup the “Aggregations” database on Atlas and use it to practice on my local machine. This way, I wouldn’t have to log into Atlas server everytime and get disconnected after a period of inactivity.
It has something to do with mongodump and mongorestore. I’ve tried using mongodump but haven’t had any success. This is what I’ve tried:
vagrant@m103:~$ sudo mongodump --host "mongodb://cluster0-shard-00-00- jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/aggregations?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl -u m121 -p aggregations 2019-02-02T20:36:15.807+0000 Failed: error connecting to db server: no reachable servers
Any help would be appreciated. Thanks.