Mongodb How to Specify Directory Folder to Recover Data!

  mongodb, question

I installed the latest mongodb on ubuntu server 14.04. So, my backup is this command mongodump -o path. You can specify the location of my backup, but how do you specify the location you want to restore when restoring data?

You can restore it through mongorestore.

Mongorestore --host < target database address > --port < target interface > --collection < target dataset name > --db < current database name > -u < current database user name > -p < current database password > < current database backup address >