SCP file transfer with mongo db

June 5, 2018 701 views
MongoDB Ubuntu 16.04

I have an app running on localhost:8080 and I have scp transferred my MongoDB dumped database to my ubuntu server and placed the dir in /var/lib/mongodb file.

My questions are:

Do I have to run mongorestore on this dir?

Also, after binding my droplet IP address what is the uri for mongo supposed to be? mongo//:<droplet ip/>:27017?

Be the first one to answer this question.