Limitations
An honest list, gathered from the specs and guides. Most of these are consequences of taking logical backups through the driver.
In general
Section titled “In general”- Logical backups only. Restores re-insert every document and rebuild every index, so restore time grows with data size. For very large deployments, storage snapshots or physical backups restore faster (see Compare).
- User data first. Server settings and
system.*collections are not backed up. Users and custom roles are only included withincludeUsersAndRoles(off by default).
Consistency and point-in-time recovery
Section titled “Consistency and point-in-time recovery”convergeand the journal need a replica set or sharded cluster on MongoDB 6.0+ and a user who may open cluster-wide change streams; the built-inbackuprole is not enough. Without that,autofalls back tonone.snapshotfails if the backup outlasts the server's snapshot window (5 minutes by default).- Time series collections are not converged or journaled: change streams do not report their writes. They are restored as read.
- Collection-option (
collMod, such as hiding an index or changing a TTL) and view changes made during a backup, or after a base backup, are not replayed; the dumped metadata is used. Index builds and drops are replayed after the documents. - A change event over MongoDB's 16 MiB limit (a document close to 16 MiB with a large
_id) fails a converge backup and stops the journal writer: the server cannot send it, even with$changeStreamSplitLargeEvent. - A connection that stays down for more than a few seconds fails a converge backup; shorter interruptions are resumed from the last change received.
- On MongoDB 6.0 (before
disambiguatedPathsin 6.1), an update to a field name that contains a dot looks like an update to a nested field (the manifest records a warning). - In restore modes
insertandupsert, the converge replay can overwrite target documents that share an_idwith a document changed during the backup. - On sharded clusters, a
$outorrenameCollectionthat replaces a backed-up collection during a converge backup can fail it withMS_UNSUPPORTED_TOPOLOGY(timing-dependent; run it again or usenone), and restores create unsharded collections: shard the targets first and restore with--mode insert. - Backing up users and roles needs
viewUserandviewRoleon top of thebackuprole. - The journal refuses passphrase encryption; use recipients or KMS keys.
- Base backups must include every namespace the journal records.
- Incremental backups need the oplog to reach back to
the previous backup, and the same include/exclude selection without
queryfilters. Every incremental copies its time series collections whole (in one snapshot read, so a time series that takes longer than the snapshot window to read fails it) and records every namespace's metadata. Long chains restore more slowly (every change since the full backup is replayed).
Encryption
Section titled “Encryption”- The manifest is not encrypted: database and collection names, counts, sizes and labels are visible to anyone who can read the storage.
- The manifest is not signed: someone with write access to the storage and a public key could substitute files. Use immutable backups and separate credentials for writing and restoring.
- No post-quantum, SSH or plugin age recipients, and no ASCII-armored files.
- The
ageCLI cannot unwrap KMS-protected keys; keep an offline recovery recipient.
Storage
Section titled “Storage”- Immutable (write-once) backups need S3 Object Lock, GCS object retention or Azure immutability; local disk and SFTP cannot lock objects.
- The journal writer's lease needs conditional writes (file, S3, GCS, Azure).
mongodump interop
Section titled “mongodump interop”importskips time series collections (mongodump stores internal bucket documents),system.*collections, users and roles, andoplog.bson.exportdoes not export time series collections.
Copies
Section titled “Copies”copyandpullare not atomic and not resumable: re-run an interrupted copy with--drop.- Masking can make values collide on a unique index, which then fails to build.
Serverless platforms
Section titled “Serverless platforms”- Lambda and Vercel limit how long a function runs. Use
--max-durationand--resumeto back up in slices, or run the Docker image where there is no time limit.
Found something missing from this list? Open an issue.
MongoShield is MIT licensed and is not affiliated with, endorsed by or sponsored by MongoDB, Inc. MongoDB is a trademark of MongoDB, Inc.Privacy policy