A logical backup extracts database content as logical records and saves it as BSON files instead of copying the physical data storage layer. It provides an external data copy and supports transfers between MongoDB instances. section 21.1.1
Use logical backups with these operational trade-offs:
- Use mongodump and mongorestore for M0 free clusters, where Atlas Cloud Backup is unavailable. section 10.1 section 21.5
- Expect significant time and processing power for large databases because both export and import operate on database content. section 21.1.1
- Handle database users and roles separately in Atlas because --dumpDbUsersAndRoles is unsupported. section 21.1.1
- Do not rely on Atlas mongodump for oplog-based point-in-time captures; --oplog is unsupported. section 21.1.1
Backing up an M0 cluster
For an Atlas M0 cluster, create a logical backup with mongodump, producing BSON files, and restore the data with mongorestore. Re-create users and roles separately because Atlas does not export them through the supported dump option. section 10.1 section 21.5
