MongoDB – Difference Between mongodump and mongoexport

mongodbmongodump

I know that when we have to take full backup at database & collection level we use mongodump but with mongodump we can take backup of a particular record also so what is difference between mongodump and mongoexport?

Best Answer

mongodump generates binary copies of data; it creates better, more efficient backups.

mongoexport can create JSON files; these can be used by other programs, and are basically human-readable as is.