Error trying to use mongorestore

error parsing command line options: error parsing uri (): scheme must be “mongodb” or “mongodb+srv”

i can connect to the cluster fine with mongo “mongodb+srv://m220student:m220password@myinfohere” but when trying to restore the data I get the error above for mongorestore --drop --gzip --uri \ “mongodb+srv://m220student:m220password@myinfohere” data

What am I doing wrong? Any help is appreciated. Thanks.

Nevermind, ignore, removed the \ and it’s working.

1 Like