Docs Menu

Docs HomeMongoDB Cluster-to-Cluster Sync

Install on Linux

On this page

  • Overview
  • Considerations
  • Install Cluster-to-Cluster Sync
  • Run Cluster-to-Cluster Sync

To configure MongoDB Cluster-to-Cluster Sync on Linux using a downloaded .tgz tarball, follow the steps on this page.

Cluster-to-Cluster Sync is available on select platforms.

This tutorial installs the latest version of mongosync.

Cluster-to-Cluster Sync is available on the following Linux operating systems:

  • Amazon Linux 2

  • Red Hat Enterprise Linux (RHEL) 7

  • Red Hat Enterprise Linux (RHEL) 8

  • Ubuntu 18.04

  • Ubuntu 20.04

Cluster-to-Cluster Sync supports synchronization between clusters. For information on MongoDB server version compatibility, see MongoDB Server Version Compatibility and Support.

Follow these steps to manually install Cluster-to-Cluster Sync from the .tgz.

1

Download the Cluster-to-Cluster Sync .tgz tarball from the following link:

MongoDB Download Center

  1. In the Version dropdown, select the version of Cluster-to-Cluster Sync to download.

  2. In the Platform dropdown, select your Linux platform.

  3. In the Package dropdown, select shell (tgz).

  4. Click Download.

2

To extract mongosync, use the tar command in a system shell:

tar -zxvf mongosync-*.tgz
3

The mongosync binary is in the bin/ directory of the unpacked tarball. To add the location of the mongosync binary to your PATH, do one of the following:

  • Copy the binary into a directory listed in your PATH variable, such as /usr/local/bin. (Update /path/to/mongosync/bin to reflect the location where you extracted the tar file.)

    sudo cp /path/to/mongosync/bin/mongosync /usr/local/bin/
  • Create symbolic links to the mongosync binary from a directory such as /usr/local/bin that is already in your PATH. (Update /path/to/mongosync/bin to reflect the location where you extracted the tar file.)

    sudo ln -s /path/to/mongosync/bin/mongosync /usr/local/bin/mongosync

To run and administer mongosync, see Using mongosync.

← Installation