Docs Menu
Docs Home
/
MongoDB Cluster-to-Cluster Sync
/

Reverse Sync Direction

On this page

  • Before You Begin
  • Steps

To reverse the direction of a sync operation, use the following procedure to commit your sync and call the reverse endpoint.

Reversing sync allows you to keep clusters in continuous sync after you commit. After you commit a sync, you can't resume continuous sync between two clusters since mongosync can only sync into empty destination clusters. If you need to use the same two clusters after cutover, you can call the reverse endpoint to keep the clusters in sync.

Before you can reverse your sync direction, you must configure mongosync and use the start endpoint to set the following parameters:

  • reversible to true

  • enableUserWriteBlocking to true.

For more information on limitations and requirements of reversing sync, see reverse.

Important

If you are migrating from a pre-6.0 source cluster, you cannot reverse sync.

Use these steps to reverse the direction of your sync:

1

Follow the Finalize Cutover Process tutorial to enable write blocking and finalize your data migration.

IMPORTANT: mongosync does not support Filtered Sync during the reverse sync process.

2

Call the reverse endpoint to reverse the direction of your sync operation. Your original source cluster becomes your new destination cluster and your original destination cluster becomes your new source cluster.

mongosync replicates all writes that you performed on your new source cluster after you unblocked writes (during step 4 of the Finalize Cutover Process) to the new destination cluster.

Back

Finalize Cutover Process