MongoDB DBA

MongoDB Database Tools

Question

mongodump versus mongoexport: which preserves a restorable MongoDB collection definition?

Answer

mongodump creates BSON plus collection metadata and index definitions for mongorestore. mongoexport produces data interchange output such as JSON or CSV. Use mongodump for restoration; use mongoexport for external data exchange. Applies to self-managed MongoDB and Atlas.

This is 17 of 22 free samples for MongoDB DBA.

More MongoDB DBA topic samples