Back Up a Sharded Cluster with Database Dumps


mongodump and mongorestore cannot be part of a backup strategy for 4.2+ sharded clusters that have sharded transactions in progress as these tools cannot guarantee a atomicity guarantees of data across the shards.

For 4.2+ sharded clusters with in-progress sharded transactions, for coordinated backup and restore processes that maintain the atomicity guarantees of transactions across shards, see:

For MongoDB 4.0 and earlier deployments, refer to the corresponding versions of the manual. For example: