Black Friday – Cyber Monday: 30% off dbSlice Desktop and Pro until Dec 2. See pricing →

Database sync tool: keep two databases in step, on a schedule

Sync · · 2 min read

dbSlice syncs tables between the leading relational databases, such as SQL Server, PostgreSQL, Oracle and MySQL, in batch jobs that run on demand or on a schedule. After the first load, each run brings only new and changed rows, and Compare lists the keys that still differ. It runs on your own Windows machine or in your own Docker environment and creates nothing in your databases by default. It is not real-time CDC: if the target must follow the source within seconds, use a CDC tool.

How a sync runs

ModeWhat it doesUse it when
Initial loadCopies the table in pages by keyThe first run, or a full refresh
UpsertInserts new rows and updates changed ones, by keyThe usual nightly or hourly job
New rows onlyInserts rows missing on the target, leaves the restAppend-only tables, logs
Update existing onlyUpdates rows that already exist on the targetThe target must not grow
Incremental by columnReads rows above the last value of a column that only grows (updated_at, a sequence id), with a re-read window for late commitsLarge tables where reading everything each run is too slow
dbSlice Synchronize tab

Check before and after writing

  • Record Diff shows which rows a run would insert or update before it writes.
  • Compare checks source and target key by key and saves the list of divergent keys, so you re-sync only those rows.

Schedule it

  • Every run on the screen can be saved as a job file and started from the command line, with logs, exit codes and e-mail or webhook alerts. Use the Windows Task Scheduler or your own scheduler. Database sync from the command line →
  • The Linux edition runs in Docker with a web interface, a built-in scheduler and a job API for CI/CD.

What it does not do

  • No real-time CDC: runs are batch jobs at the interval you set.
  • Incremental runs do not see rows deleted at the source. Run Compare, or a reload, before you switch systems.
  • It moves data, not code: stored procedures, triggers and views stay with your DBA or a code conversion tool.

In production

dbSlice has kept PostgreSQL fed from SQL Server with dozens of nightly Upsert jobs for more than six years, across several data centers and on-premises servers. dbSlice sync in live production →

FAQ

How do I keep two databases in sync automatically?

Run an initial load, then save an Upsert or incremental job and schedule it. Each run brings new and changed rows; run Compare to confirm nothing is missing.

Does dbSlice sync between different database engines?

Yes. Source and target can be any of the leading relational databases dbSlice supports, in any direction.

Does it install triggers or agents?

No. By default it reads the source by key in small batches and creates nothing in either database.

Is it real-time?

No. It runs batch jobs. For changes within seconds, use log-based CDC.

Sync two databases automatically · Best database compare and sync tool · See pricing

Try it on your own data: the free Microsoft Store version needs no license key.