Refer to the official PostgreSQL documentation for a list of Cluster-to-Cluster sync’s limitations
Migrating data with mongosync
Scaleway Managed MongoDB® is compatible with the MongoDB® Cluster-to-Cluster tool.
Cluster-to-Cluster sync helps you migrate data from one cluster to another without downtime through synchronization. Until the sync is finalized, the tool replicates and writes data from one cluster to another.
Before you startLink to this anchor
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- A MongoDB® Database Instance
- Installed a MongoDB®-compatible client
- Set up your environment variables for the Scaleway API
-
Create a user in your MongoDB® Instance. Make sure you replace
<user-name>
,<password>
and{instance_id}
with the user name of the user, its password and the MongoDB® Instance UUID, respectively.curl -X POST \-H "X-Auth-Token: $SCW_SECRET_KEY" \-H "Content-Type: application/json" \-d '{"name":"<user-name>","password":"<password>"}' \"https://api.scaleway.com/mongodb/v1/regions/fr-par/instances/{instance_id}/users" -
Apply the
sync
role to the user for any database. Thedb_admin
role also allows you to sync. -
Download and install
mongosync
for your host system.TipIf the database you want to sync is bigger than 100 GB, we recommend you use a Scaleway Instance to sync.