DBSyncer: One Web UI, 22 Connectors, Full and Incremental Sync Without Custom Scripts
Stop Writing Your Own Sync Scripts! This Open-Source Middleware Handles 22 Data Sources from One UI
01 Introduction
Have you ever needed to sync data from one database to another, such as mysql->redis, mysql->Kafka, mysql->Starrocks?
For these scenarios, you face both full and incremental synchronization. There are quite a few open-source tools for full synchronization, and incremental tools generally use binlog underneath. But not many tools do both full and incremental well.
Today I'll introduce an open-source data synchronization middleware written in pure Java: DBSyncer.
02 Introduction
DBSyncer (pronounced dbsɪŋkɜː(r), abbreviated dbs) is an open-source data synchronization middleware maintained by Sichuan Xinghe Sync Technology Co., Ltd., licensed under Apache-2.0.
Official positioning: provides synchronization scenarios for MySQL, Oracle, SQL Server, PostgreSQL, Elasticsearch, Kafka, File, SQL, etc., supports uploading plugins for custom sync/transform business logic, and provides full/incremental sync monitoring statistics charts and application performance alerts.

GitHub: https://github.com/86dbs/dbsyncer
Gitee: https://gitee.com/ghi/dbsyncer
Official website: https://dbsyncer.cn
Core advantages:
- Combination-driven: abstracts data sources into
Connectors; source and target connect through standardized interfaces, so "sync from what to what" can be freely combined. Table mapping relationships can be arranged freely, without writing a separate channel for each pair of data sources. - Full + incremental: the full phase reads in shards and writes in parallel; the incremental phase directly connects to each database's native change mechanism (e.g., MySQL
Binlog). When full sync finishes, it switches seamlessly to incremental, using position management to avoid missing data and duplicates. - Plugin-based transformation: supports writing custom logic in Java and attaching it to the sync pipeline. Field mapping, masking, structure flattening, and external
HTTPcalls can all be plugged in. Synchronization is no longer just "moving data"; it becomes a programmable data pipeline. - Real-time observability: full/incremental throughput, end-to-end latency, failure rate, and retry counts can be drilled down by task and data source. Thresholds trigger alerts via email, DingTalk, or
Webhook. Observability is a built-in capability of the engine, not an external add-on. - Domestic adaptation: the connector matrix covers domestic and mainstream components such as Dameng, Kingbase,
TiDB,Doris,StarRocks, andOceanBase, adapting to Xinchuang (domestic IT substitution) scenarios.
Supported connectors:
Supports 22 connectors.
| Connector | Source | Target | Supported versions (including below) |
|---|---|---|---|
| ClickHouse | ✔ | ✔ | 22.x+ |
| Dameng | ✔ | ✔ | DM8 |
| Doris | ✔ | ✔ | 1.2.x+ |
| DuckDB | ✔ | ✔ | 1.5.x |
| Elasticsearch | ✔ | ✔ | 6.0.0 - 8.15.3 |
| File | ✔ | ✔ | *.txt, *.unl |
| H2 | ✔ | ✔ | 2.2.x |
| Http | ✔ | ✔ | HTTP/1.1 |
| Kafka | ✔ | ✔ | 2.10-0.9.0.0+ |
| Kingbase | ✔ | ✔ | V8 |
| MongoDB | ✔ | ✔ | 4.2+ |
| MySQL | ✔ | ✔ | 5.7.19+ |
| OceanBase | ✔ | ✔ | 3.x+ |
| OceanBaseOracle | ✔ | ✔ | 3.x+ |
| Oracle | ✔ | ✔ | 10g - 19c |
| PostgreSQL | ✔ | ✔ | 9.5.25+ |
| Redis | ✔ | ✔ | as source (incremental CDC) 5.x ~ 7.x; as target 2.6+ |
| RocketMQ | ✔ | ✔ | 4.9.x+ |
| Sqlite | ✔ | ✔ | 2+ |
| SqlServer | ✔ | ✔ | 2008+ |
| StarRocks | ✔ | ✔ | 2.5+ |
| TiDB | ✔ | ✔ | 5.x+ |
| SQL | ✔ | — | supports the relational databases above |
From this table you can see its ambition: relational ↔ relational, relational ↔ non-relational, file/interface ↔ database — all three paths are open.
03 Installation and startup
Environment dependencies: JDK 1.8+ (manual compilation also requires Maven), browser accesses port 18686.
3.1 Download package
# 1. Confirm JDK 1.8+ is installed
java -version
# 2. Download dbsyncer-x.x.x.zip from Releases and unzip
# 3. Windows: run bin/startup.bat; Linux: run bin/startup.sh
# 4. Visit http://127.0.0.1:18686 in browser
# 5. Default account/password: admin / admin
One-click installation on Windows and Linux.
3.2 Docker
# Pull community edition image
docker pull images.dbsyncer.cn/xhtb-dbs/dbsyncer:latest
docker pull images.dbsyncer.cn/xhtb-dbs/dbsyncer:2.1.5
# Run container
docker run -d \
--name=dbsyncer \
--restart=unless-stopped \
-p 18686:18686 \
-e TZ="Asia/Shanghai" \
-m 5g \
--memory-swap=5g \
-v /opt/dbsyncer/data:/app/dbsyncer/data \
-v /opt/dbsyncer/logs:/app/dbsyncer/logs \
-v /opt/dbsyncer/plugins:/app/dbsyncer/plugins \
--log-driver json-file \
--log-opt max-size=100m \
--log-opt max-file=7 \
images.dbsyncer.cn/xhtb-dbs/dbsyncer:latest
3.3 Manual compilation
git clone https://gitee.com/ghi/dbsyncer.git
cd dbsyncer
chmod u+x build.sh
./build.sh
After startup, visit http://127.0.0.1:18686, log in with admin/admin, and you'll see the dashboard.
04 Example
Take the installation package as an example. After installation, log in. Account: admin/admin

4.1 Configure data sources
Choose the connection type; it can be used as a data source, a target source, or both at the same time.

After configuration, you'll have data source and target source information.

Here I configured two MySQL data sources and target sources.
4.2 Data synchronization
Add a data synchronization task in task management.

The data source field only searches data sources, the target source field only searches target sources, then give the task a name.
After creating the task, the task list appears.

4.3 Establish mapping relationships
Here you need to select the source database and target database, and you can choose full, incremental, or full + incremental.

Next, select the source table and target table; multiple selection is supported.
One downside: the target table must already exist; automatic creation is not supported.
4.4 Start the task

After starting, you can view task execution status through the dashboard.

05 Summary
DBSyncer comes in Community Edition and Professional Edition; the Professional Edition naturally requires payment.

But the basic features are enough for everyday needs. If you're interested, go give it a try!