The primary MongoDB command to restore data is mongorestore. The command-line options are identical to those listed previously for mongodump, with the following additions:
Input options |
Restore options |
--objcheck    |
--drop |
For documentation on mongorestore, see https://docs.mongodb.com/manual/reference/program/mongorestore/#mongorestore.