liveBook · Manning

Logical backup

As explained in MongoDB 8.0 in Action, Third Edition

A logical backup stores database content as logical records or serialized documents rather than copying the underlying physical data layer.

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

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Defines BSON-based extraction, explains performance and Atlas limitations, and stops short of command-level procedures.
Examples
Uses Atlas M0 clusters, BSON dump files, MongoDB instance transfers, and separate user-and-role recreation.
What it assumes
Assumes MongoDB data and Atlas cluster tiers, while explaining logical extraction and restoration constraints directly.
What you can do after
Apply it via mongodump and mongorestore to create external BSON copies and restore database content.
How it connects
Connects logical backup with MongoDB Atlas, mongodump, mongorestore, BSON, oplog, and point-in-time recovery.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.