#--
sdb.* https://github.com/m5it
#**************** you are welcome **********************
#--
A bash script tool for syncing MariaDB databases. Syncs tables by auto-increment IDs, ensuring only new data is transferred.
- Auto-increment sync: Syncs data from
sourcetodestinationDBs based on auto-increment IDs. - Configurable: Define sync pairs and credentials in
sdb.config. - Batch processing: Uses
sdbloop.shto loop through defined DB pairs. - Debug mode: Enable
DEBUG="true"for detailed logs.
start.sh: Entry point to run the sync process.sdb.config: Stores DB credentials and sync pairs (e.g.,DBS=('source1:dest1' 'source2:dest2')).sdbloop.sh: Defines DB pairs and triggerssdb.shfor each pair.sdb.sh: Core logic for syncing tables via auto-increment ID checks.
- Configure: Edit
sdb.configwith your DB credentials and sync pairs. - Run:
./start.sh
This executes sdbloop.sh, which runs sdb.sh for each defined DB pair.
28.01.2026 => v0.1 · Start of sdb.sh 30.01:2026 => v0.2 · Updated support of options. Added option to exclude specific tables from syncing. Notes
- Excluded tables are skipped during sync.
- Ensure
DEBUG="true"is set for troubleshooting.