What am I doing wrong?

mongorestore --drop --gzip mongodb+srv://m220student:m220password@gingercluster-zvo5x.mongodb.net/test?retryWrites=true

I tried different ways to replace --uri to upload data but fails every time…

Hi, i think that miss the data folder , in my case worked good with
mongorestore --drop --gzip --uri "mongodb+srv://<user>:<pass>@<url>" data
try with
mongorestore --drop --gzip --uri \ "mongodb+srv://m220student:m220password@gingercluster-zvo5x.mongodb.net" data

1 Like

What is the error message?