Hello,
Is it possible to make complete copy(including indexes definitions) of for example --db=video --collection=movies from training system to my local instance using mongodump?
I tried following command …
mongodump --host=cluster0-shard-00-00-jxeqq.mongodb.net --port=27017 --username=m001-student --password=m001-mongodb-basics --authenticationDatabase=admin --db=video --collection=movies --archive="test.mongodump"
,which always fails with …
Failed: can't create session: could not connect to server: server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: cluster0-shard-00-00-jxeqq.mongodb.net:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : connection(cluster0-shard-00-00-jxeqq.mongodb.net:27017[-61]) incomplete read of message header: EOF }, ] }
I already used export/import but it would be better to know that collections are completely equal with all additional definitions.
Thanks in advance for your hints.