Skip to content
المشاريع

حول

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

البيانات والتحليلات

كيف تُقاس هذه الأرقام

507 نجمة113 التفرعات +1 خلال 24 ساعة

ما يمكنك فعله

  • Replicate across different systems. Move data between relational databases and MongoDB, or export rows to CSV, ORC, S3, or Kafka. Supported directions and modes vary by connector. Connector matrix
  • Parallel bulk transfers. Split source reads across workers where supported and use native loaders such as PostgreSQL COPY and SQL Server bulk copy. Parallelism and tuning
  • Control how the destination changes. Refresh it in place, stage a full replacement for an atomic publish, or load an incremental batch. A filter or a source watermark can bound what the run reads. Replication modes
  • Define the transfer in an options file. Select columns, filter rows, use a custom source query where supported, or list several table pairs for one sequential CLI run. Configuration wizard

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
+٢
خلال 15 يومًا
+٢
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

ReplicaDB

ReplicaDB

Latest release Apache 2.0 license Docker pulls GitHub downloads GitHub stars OpenSSF Best Practices

Copy data in batches between databases and other data stores. Use ReplicaDB to migrate an Oracle table to PostgreSQL, refresh a reporting table, or export selected rows to CSV. ReplicaDB can split large transfers into parallel tasks where the connectors support it. It runs without installing agents or triggers on the source database.

Documentation · CLI quickstart · Server quickstart · Server screenshots · Connector matrix · Configuration wizard

ReplicaDB bulk-loads data from source databases and files into destinations such as databases, object storage, files, and streams.

The illustration shows the source-to-destination flow. The connector matrix lists current support.

Choose CLI or Server

If you want to… Start here
Run a transfer from a terminal, script, or existing scheduler CLI · Run a standalone command or save a reusable options file. CLI quickstart
Manage recurring transfers with a team Server · Configure jobs in the web UI or API, schedule runs, manage access, and inspect run history. Server quickstart

Both use the same replication engine. The two quickstarts use the same PostgreSQL sample data so you can try either workflow.

Key features

  • Replicate across different systems. Move data between relational databases and MongoDB, or export rows to CSV, ORC, S3, or Kafka. Supported directions and modes vary by connector. Connector matrix
  • Parallel bulk transfers. Split source reads across workers where supported and use native loaders such as PostgreSQL COPY and SQL Server bulk copy. Parallelism and tuning
  • Control how the destination changes. Refresh it in place, stage a full replacement for an atomic publish, or load an incremental batch. A filter or a source watermark can bound what the run reads. Replication modes
  • Define the transfer in an options file. Select columns, filter rows, use a custom source query where supported, or list several table pairs for one sequential CLI run. Configuration wizard
  • Operate recurring jobs in Server. Reuse connection profiles with encrypted credentials, manage access to jobs and datasources, and inspect run history and diagnostics from the web UI or API. Server guide

Try a local transfer

Copy a single order from SQLite to CSV. You need Java 17 or newer and sqlite3. Run this in a POSIX shell. It creates a fresh directory for the database and output file.

demo_dir=$(mktemp -d /tmp/replicadb-demo.XXXXXX)
cd "$demo_dir"

curl -fLO https://github.com/osalvador/ReplicaDB/releases/download/v1.0.3/ReplicaDB-1.0.3.tar.gz
tar -xzf ReplicaDB-1.0.3.tar.gz

sqlite3 orders.db "CREATE TABLE orders (id INTEGER PRIMARY KEY, status TEXT);
INSERT INTO orders VALUES (1, 'pending');"

cat > orders.conf <<'EOF'
mode=complete
jobs=1
source.connect=jdbc:sqlite:orders.db
source.table=orders
sink.connect=file://${PWD}/orders.csv
sink.file.format=csv
sink.connect.parameter.format.firstRecordAsHeader=true
EOF

./bin/replicadb --options-file orders.conf
cat orders.csv

Expected output:

id,status
1,pending

For a database-to-database transfer, follow the PostgreSQL walkthrough. Use the options-file guide to save a repeatable transfer. For Windows packages or the full installation options, see Releases, CLI installation, or Server installation. The CLI container image is also available for Docker and Podman. For SELinux volume mounts, see Podman volume options.

Watch an Oracle-to-PostgreSQL CLI transfer

Terminal recording of an Oracle-to-PostgreSQL transfer with the ReplicaDB CLI

ReplicaDB Server in action

Create a job from reusable connections, choose a replication mode, and run it on demand or on a schedule. The job's run history gives you the result, row counts and diagnostics.

ReplicaDB Server job catalog showing source tables, destination tables, and replication modes

Reuse connection profiles Schedule recurring transfers
Datasource catalog showing connectors, redacted connection details, and source and destination capabilities Schedule editor showing the frequency, cron expression, and time zone for a job

Start the Server quickstart to configure the connections and run your first managed job.

Choose how to write to the destination

Mode What it does
complete Replaces the destination by default. An interrupted run can leave a database destination empty or partially loaded.
complete-atomic Loads a staging table before publishing the replacement. The destination connector determines the transaction guarantees.
incremental Writes a selected set of new or changed rows. Supported database sinks merge by key, while file sinks append.

See replication modes for what readers see during a run, how watermarks advance, and how to recover from an interruption. See incremental watermarks to configure a bounded read.

Compatible databases

Connectors cover Oracle, PostgreSQL, MySQL, MariaDB, SQL Server, Db2, SQLite, MongoDB, Denodo, CSV, Amazon S3, Kafka, and generic JDBC. Source and destination roles, modes, and staging support vary by connector. Check the connector matrix before choosing a pair. See the Db2 connector guide for platform and driver details and the generic JDBC guide to configure an external driver.

Documentation

See the documentation portal for the complete guides.

Roadmap

See ROADMAP.md for planned capabilities and product decisions.

Contributing

See CONTRIBUTING.md for build and test instructions. Use GitHub Issues to report a bug or propose a feature.

License

ReplicaDB is available under the Apache License 2.0.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…