The mongoexport doc page: (https://docs.mongodb.com/manual/reference/program/mongoexport/) contains a big red warning:
Avoid using mongoimport and mongoexport for full instance production backups. They do not reliably preserve all rich BSON data types, because JSON can only represent a subset of the types supported by BSON. Use mongodump and mongorestore as described in MongoDB Backup Methods for this kind of functionality.
Since mongoexport by default outputs extended JSON to cater for this, is this warning still relevant?
- Investigate current state of mongoimport and mongoexport BSON support.
- Document and backport as needed