Types of MongoDB Backup

What is difference between mongodump & mongoexport, mongorestore & mongoimport?


One use JSON (text based) and the BSON (binary based).

1 Like

Thank you for your response.

… also an overview of these tools were covered in Chapter 1, Server Tools Overview.

Note that mongoimport and mongoexport are not Backup/Restore tools in the real sense. The backup/restore tools are mongodump and mongorestore. For example, indexes can be rebuilt from a mongodump/mongorestore.

1 Like

Yes and that’s very important to note. I should have.

Hi @imkumarV,

I hope you found @steevej-1495’s and @007_jb’s response helpful.

Please feel free to get back to us if you have any other query.

Shubham Ranjan
Curriculum Services Engineer

Thank you one and all for your valuable response.