Docs Menu
Docs Home

Cluster-to-Cluster Sync

Cluster-to-Cluster Sync replicates data and writes from one cluster to another until the sync is finalized. You can use this tool to perform one-time data migrations between MongoDB clusters with minimal downtime.

For more information about mongosync and destination cluster behavior during execution, see Mid-sync Considerations.

You can enable Cluster-to-Cluster Sync with the mongosync utility. For an overview of the mongosync process, see About mongosync.

Important

Until you've called commit on mongosync and canWrite successfully returns true, the destination cluster cannot be used to accept application read or write traffic. Do not use mongosync for maintaining Disaster Recovery clusters.

To get started with mongosync, refer to the Quick Start Guide. For more detailed information, refer to the Installation or Connecting mongosync page that best fits your situation. See also the Limitations page for important restrictions and the mongosync Behavior page for behavior information.

Warning

mongosync does not check for compliance with the documented limitations. Please ensure that your application is not affected by the limitations.

Running mongosync in the presence of one of these limitations could lead to undefined behavior on the destination cluster.

The Frequently Asked Questions (FAQ) page addresses questions users have asked about mongosync.

Next

Quickstart