RepositoryJavaESSpain
osalvador

osalvador/ReplicaDB

ReplicaDB is open source tool for database replication, designed for efficiently transferring bulk data between relational and non-relational databases

506stars
114forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: nosql-databases

#1 Repository of the month

1
TINIX TRENDING·Topic: fast

#1 Repository of the month

1
TINIX TRENDING·Topic: nosql

#1 Repository of the month

License Last Version Docker Pull Github Downloads Github Start CII Best Practices

replicadb-logo

ReplicaDB is a high-performance, open-source command-line tool for bulk data replication between heterogeneous databases. It enables efficient ETL/ELT workflows by transferring data in parallel between Oracle, PostgreSQL, MySQL, MongoDB, SQL Server, and other databases without requiring database agents or triggers.

ReplicaDB supports a wide range of data sources including relational databases (Oracle, PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, IBM DB2 LUW and DB2 for i), NoSQL databases (MongoDB), data virtualization platforms (Denodo), file formats (CSV), cloud storage (Amazon S3), and streaming platforms (Kafka). Any JDBC-compliant database is also supported with some limitations.

The tool is cross-platform compatible with Windows, Linux, and macOS, and leverages parallel data transfer for optimal performance and system utilization during large-scale data migrations and synchronization tasks.


ReplicaDB-Conceptual

Why ReplicaDB

ReplicaDB addresses common gaps in existing database replication tools by providing:

  • Open Source: Transparent development and community-driven improvements
  • Cross-Platform: Java-based solution compatible with Linux, Windows, and macOS
  • Heterogeneous Support: Works with SQL, NoSQL, and persistent stores like CSV, Amazon S3, or Kafka
  • Simple Architecture: Standalone command-line tool without requiring database agents
  • High Performance: Optimized for bulk data transfer with large datasets
  • Non-Intrusive: Focused on batch replication without requiring database triggers or CDC installation

Comparison with Alternatives

Common alternatives and how ReplicaDB differs:

  • SymmetricDS: A comprehensive CDC solution with database triggers. While feature-rich, it requires installation and maintenance of capture tables in source databases, making it more intrusive for batch replication scenarios.
  • Sqoop: Designed specifically for Hadoop ecosystems, limiting its use in other environments where Hadoop infrastructure is not available.
  • Pentaho and Talend: Full-featured ETL platforms that require custom development for each replication job, increasing complexity and maintenance overhead for straightforward data transfer tasks.

Feature Comparison

FeatureSymmetricDSSqoopPentaho/TalendReplicaDB
Database Agents RequiredYesNoNoNo
Triggers in Source DBYesNoNoNo
Heterogeneous DatabasesLimitedNoYesYes
Hadoop RequirementNoYesNoNo
Custom Development per JobLowLowHighNone
Parallel TransferYesYesYesYes
Open SourceYesYesYesYes

Installation

Prerequisites

Before installing ReplicaDB, ensure you have:

  • Java Runtime: Java JDK or JRE 11 or higher installed and configured
  • Network Connectivity: Reliable network access to both source and sink databases
  • Database Credentials: Appropriate permissions on both databases:
    • Source database: SELECT permissions on tables to replicate
    • Sink database: INSERT, UPDATE, DELETE, and CREATE TABLE permissions
  • (Optional) Docker or Podman for containerized deployment

Stand Alone

System Requirements

ReplicaDB is written in Java and requires a Java Runtime Environment (JRE) Standard Edition (SE) or Java Development Kit (JDK) Standard Edition (SE) version 11 or above. The minimum system requirements are:

  • Java SE Runtime Environment 11 or above
  • Memory - 256 MB minimum, 1 GB recommended for large datasets

Install

Download the latest release from GitHub and extract the archive:

$ curl -o ReplicaDB-0.18.0.tar.gz -L "https://github.com/osalvador/ReplicaDB/releases/download/v0.18.0/ReplicaDB-0.18.0.tar.gz"
$ tar -xvzf ReplicaDB-0.18.0.tar.gz
$ ./bin/replicadb --help

JDBC Drivers

ReplicaDB already comes with all the JDBC drivers for the Compatible Databases. But you can use ReplicaDB with any JDBC-compliant database.

First, download the appropriate JDBC driver for the type of database you want to use, and install the .jar file in the $REPLICADB_HOME/lib directory. Each driver .jar file also has a specific driver class that defines the entry-point to the driver.

If your database is JDBC-compliant and not appear in the Compatible Databases list, you must set the driver class name in the configuration properties as extra JDBC parameter.

For example, to replicate a DB2 database table as both source and sink

######################## ReplicadB General Options ########################
mode=complete
jobs=1
############################# Source Options ##############################
source.connect=jdbc:db2://localhost:50000/testdb
source.user=${DB2USR}
source.password=${DB2PASS}
source.table=source_table
source.connect.parameter.driver=com.ibm.db2.jcc.DB2Driver
############################# Sink Options ################################
sink.connect=jdbc:db2://localhost:50000/testdb
sink.user=${DB2USR}
sink.password=${DB2PASS}
sink.table=sink_table
sink.connect.parameter.driver=com.ibm.db2.jcc.DB2Driver

Docker

For containerized deployments or environments without Java installed, ReplicaDB is available as a Docker image.

$ docker run \
    -v /tmp/replicadb.conf:/home/replicadb/conf/replicadb.conf \
    osalvador/replicadb

Visit the project homepage on Docker Hub for more information.

Podman

For Red Hat Enterprise Linux and Fedora environments, ReplicaDB provides a container image based on Red Hat Universal Base Image (UBI) 8, which is optimized for enterprise security and compliance.

$ podman run \
    -v /tmp/replicadb.conf:/home/replicadb/conf/replicadb.conf:Z \
    osalvador/replicadb:ubi8-latest

Note: The :Z flag relabels the volume for SELinux compatibility. See Podman documentation for details on volume mounting with SELinux.

Full Documentation

You can find the full ReplicaDB documentation here: Docs

Configuration Wizard

You can create a configuration file for a ReplicaDB process by filling out a simple form: ReplicaDB configuration wizard

Quick Start Examples

Oracle to PostgreSQL

Security Note: The examples below use environment variables for credentials. Never hard-code passwords in scripts or command history.

Prerequisites:

  • Source table must exist and be accessible with SELECT permissions
  • Sink table must exist with a compatible schema
  • For incremental mode, sink table must have primary keys defined
$ replicadb --mode=complete -j=1 \
--source-connect=jdbc:oracle:thin:@$ORAHOST:$ORAPORT:$ORASID \
--source-user=$ORAUSER \
--source-password=$ORAPASS \
--source-table=dept \
--sink-connect=jdbc:postgresql://$PGHOST/osalvador \
--sink-table=dept
2026-01-28 10:15:23,808 INFO  ReplicaTask:36: Starting TaskId-0
2026-01-28 10:15:24,650 INFO  SqlManager:197: TaskId-0: Executing SQL statement: SELECT /*+ NO_INDEX(dept)*/ * FROM dept where ora_hash(rowid,0) = ?
2026-01-28 10:15:24,650 INFO  SqlManager:204: TaskId-0: With args: 0,
2026-01-28 10:15:24,772 INFO  ReplicaDB:89: Total process time: 1302ms

Alternatively, use a configuration file to simplify repeated operations:

######################## ReplicadB General Options ########################
mode=complete
jobs=1
############################# Source Options ##############################
source.connect=jdbc:oracle:thin:@${ORAHOST}:${ORAPORT}:${ORASID}
source.user=${ORAUSER}
source.password=${ORAPASS}
source.table=dept
############################# Sink Options ################################
sink.connect=jdbc:postgresql://${PGHOST}/osalvador
sink.table=dept
$ replicadb --options-file replicadb.conf

ReplicaDB-Ora2PG.gif

PostgreSQL to Oracle

$ replicadb --mode=complete -j=1 \
--sink-connect=jdbc:oracle:thin:@$ORAHOST:$ORAPORT:$ORASID \
--sink-user=$ORAUSER \
--sink-password=$ORAPASS \
--sink-table=dept \
--source-connect=jdbc:postgresql://$PGHOST/osalvador \
--source-table=dept \
--source-columns=dept.*
2026-01-28 10:20:35,334 INFO  ReplicaTask:36: Starting TaskId-0
2026-01-28 10:20:35,440 INFO  SqlManager:131 TaskId-0: Executing SQL statement: SELECT  * FROM dept OFFSET ?
2026-01-28 10:20:35,441 INFO  SqlManager:204: TaskId-0: With args: 0,
2026-01-28 10:20:35,550 INFO  OracleManager:98 Inserting data with this command: INSERT INTO /*+APPEND_VALUES*/ ....
2026-01-28 10:20:35,552 INFO  ReplicaDB:89: Total process time: 1007ms

Compatible Databases

Persistent StoreSourceSink CompleteSink Complete-AtomicSink IncrementalSink Bandwidth Throttling
Oracle:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
MySQL:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
MariaDB:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
PostgreSQL:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
IBM DB2 LUW:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
IBM DB2/i:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:
SQLite:heavy_check_mark::heavy_check_mark::heavy_multiplication_x::heavy_check_mark::heavy_check_mark:
SQL Server:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_multiplication_x:
MongoDB:heavy_check_mark::heavy_check_mark::heavy_multiplication_x::heavy_check_mark::heavy_check_mark:
Denodo:heavy_check_mark:N/AN/AN/AN/A
CSV:heavy_check_mark::heavy_check_mark:N/A:heavy_check_mark::heavy_check_mark:
Kafka:heavy_multiplication_x:N/AN/A:heavy_check_mark::heavy_check_mark:
Amazon S3:heavy_multiplication_x::heavy_check_mark:N/AN/A:heavy_check_mark:
JDBC-Compliant database:heavy_check_mark::heavy_check_mark::heavy_multiplication_x::heavy_multiplication_x::heavy_check_mark:

See DB2 Documentation for driver installation and platform-specific details.

Roadmap

Features:

  • Replicate multiple tables in a single run
  • Scheduling
  • Web interface
  • Server mode with API
  • Kubernetes compliant

New Databases:

  • Elasticsearch
  • Redis
  • GCP BigQuery
  • Azure Synapse

Contributing

We welcome contributions to ReplicaDB! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.

How to Contribute:

  1. Fork the repository: https://github.com/osalvador/ReplicaDB
  2. Create your feature branch: git checkout -b feature/your-feature-name
  3. Commit your changes: git commit -am 'Add feature description'
  4. Push to the branch: git push origin feature/your-feature-name
  5. Create a Pull Request

Contribution Guidelines:

  • Follow existing code style and conventions
  • Add tests for new functionality
  • Update documentation to reflect your changes
  • Ensure all tests pass before submitting PR
  • Keep pull requests focused on a single feature or fix

For detailed guidelines, see CONTRIBUTING.md (when available).

License

ReplicaDB is open source software released under the Apache License 2.0. You are free to use, modify, and distribute this software for both commercial and non-commercial purposes, subject to the terms and conditions of the license.

Key points:

  • Free for commercial and personal use
  • Modification and distribution permitted
  • Must include license and copyright notices
  • Provided "as is" without warranty

For complete license terms, see the LICENSE file in the repository.

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
dbeaver/dbeaver

Free universal database tool and SQL client

52.6k
Nov 30, 2026
RepositoryC
redis/redis

For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.

77.9k
Dec 1, 2026
RepositoryC++
duckdb/duckdb

DuckDB is a high-performance analytical database system

43.5k
Nov 29, 2026
RepositoryJava
OtterMind/Chat2DB

Chat2DB is a free, cross-platform, local-first database client and SQL workspace for developers, DBAs, analysts, and data teams. Connect to 40+ databases, manage data, edit and run SQL, and use your own AI model to generate, explain, and optimize queries. Available on desktop, web, Docker, and CLI, with MCP support.

28.4k
Nov 11, 2026
RepositoryJava
apache/shardingsphere

Empowering Data Intelligence with Distributed SQL for Sharding, Scalability, and Security Across All Databases.

20.8k
Nov 27, 2026
RepositoryClojure
metabase/metabase

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

50.7k
Dec 1, 2026
RepositoryTypeScript
prisma/orm

The Prisma ORM: write your application in TypeScript with human-readable queries instead of SQL. Host your database on Prisma Postgres and your app on Prisma Compute.

47.8k
Nov 29, 2026
RepositoryScala
apache/spark

Apache Spark - A unified analytics engine for large-scale data processing

44.7k
Dec 2, 2026
RepositoryGo
pingcap/tidb

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

40.8k
Dec 1, 2026