If you’ve backed up a database using the mongodump
utility, you can restore it using the mongorestore
utility.
The mongorestore
utility loads data from either a binary database dump created by mongodump
or the standard input into a mongod
or mongos
instance.