Data Sync
Data Sync replicates data between your saved connections: MongoDB to MongoDB, MongoDB to SQL, or SQL to MongoDB. A four-step wizard sets up the job (Source, Rules, Options and Review), with a live topology preview beside it. Once the job is running, a monitor shows events, lag and anything that failed to write. Data Sync replaces the earlier MongoSync.
| Source | Target | Typical use |
|---|---|---|
| MongoDB | MongoDB | Promote local data to Atlas, or keep dev, staging and production in step. |
| MongoDB | SQL (PostgreSQL, MySQL, …) | Feed a reporting warehouse from your application database. |
| SQL | MongoDB | Move relational data into documents, once or continuously. |
Every job needs MongoDB on at least one side. SQL to SQL replication isn't available yet, and the header of the wizard reminds you of this.
The Data Sync tab lists every sync job with its status, and counts how many are live, in initial sync, paused, stopped, completed or failed. Search by job name, database or connection, or filter by status. Each job has Start, Stop, Edit and Delete actions. A failed job tells you why: the phase it failed in and the error.
The step bar across the top shows where you are, and a tick marks every step that is complete. Click any finished step to go back to it. On the right, the Topology preview updates as you go, showing the source, the number of rules, each target and the chosen mode.
Give the job a name and an optional description, then choose the source connection and source database. The topology preview shows how many collections or tables are available.
VisuaLeaf checks the source as soon as you pick it:
First add one or more targets. Each target is a saved connection plus a database, labelled T1, T2 and so on. Then add sync rules, one for each collection or table you want to replicate.
| Setting | Meaning |
|---|---|
| Source | The collection or table to read from. |
| Target and Table / Collection | Which target it goes to and the destination name. A new badge means it will be created. |
| Filter | Limits which rows are replicated. For a MongoDB source, write the query as JSON or switch to the Visual builder. For a SQL source, write a WHERE predicate. Leave it empty to sync everything. |
| Transformation | None (pass-through), or a saved transformation that renames, casts or computes fields on the way. Use + to create one. |
| Fallback date field / Watermark column | A last-updated field (for example updatedAt or updated_at) used to pick up changes. For SQL sources without CDC, this column drives change detection. |
| Initial sync batch size | How many rows are copied per round trip during the initial copy. Bigger batches finish sooner but use more memory. |
| On filter mismatch | What happens when a row that was already copied stops matching the filter: Keep on target, or Delete from target. |
Choose how the job runs, and whether it starts immediately after you create it.
| Mode | Behavior |
|---|---|
| Full sync | Copies everything, then keeps streaming changes as they happen. This is the default. |
| Initial only | Copies what's there now and stops. No live streaming. |
| Incremental only | Skips the initial copy and streams changes from now on. Use it when the target is already populated. |
Modes the source can't support (for example, live streaming from a standalone MongoDB server) are greyed out.
The review page summarizes the source, every target, each rule with its filter and transformation, and the options. Each section has an Edit link that jumps back to its step. A warning appears if any rule will delete rows from the target when they stop matching the filter. At the bottom, an estimate shows how many documents the initial copy will move.
Click Create & launch to save the job (and start it, if auto-start is on). You can also click Create & launch from the Rules or Options step once the job is valid.
After the job is saved, switch from Setup to Monitor to watch it live. The job keeps running in the background, so you can close the tab and come back later.
Use Pause, Resume and Stop to control a running job. Re-sync resets the initial copy and copies everything into the current target again. Use it after you change the target database or table.
Download and start managing your MongoDB and SQL databases with ease.
Download Free Trial