Docs Menu
Docs Home
/
MongoDB Manual
/ /

Backup and Restore Sharded Clusters

The following tutorials describe backup and restoration for sharded clusters:

Tip

To use mongodump and mongorestore as a backup strategy for sharded clusters, you must stop the sharded cluster balancer and use the fsync command or the db.fsyncLock() method on mongos to block writes on the cluster during backups.

Sharded clusters can also use one of the following coordinated backup and restore processes, which maintain the atomicity guarantees of transactions across shards:

Back Up a Sharded Cluster with File System Snapshots
Use file system snapshots back up each component in the sharded cluster individually. The procedure involves stopping the cluster balancer. If your system configuration allows file system backups, this might be more efficient than using MongoDB tools.
Back Up Sharded Clusters with Database Dumps
Create backups using mongodump to back up each component in the cluster individually.
Schedule Backup Window for Sharded Clusters
Limit the operation of the cluster balancer to provide a window for regular backup operations.
Restore a Sharded Cluster
An outline of the procedure and consideration for restoring an entire sharded cluster from backup.

Back

Restore a Replica Set from MongoDB Backups