mongorestore cmd code example Example: mongorestore command mongorestore [backup dir] --db [dbName] --port [mongod port]