tidbstandalone/configs/task.yaml

52 lines
1.5 KiB
YAML

# ==============================================================================
# DM Task Configuration Template
# ==============================================================================
#
# This file is a TEMPLATE and is NOT used directly by DM.
#
# The actual task configuration is dynamically generated by:
# scripts/init-dm.sh
#
# The script reads environment variables from .env and creates the real task.yaml
# with your specific database name and table list.
#
# HOW TO RUN THE SYNC:
# --------------------
# 1. Configure .env file with your credentials
# 2. Run: ./start.sh (auto-generates and starts sync)
# 3. Check status: ./status.sh or ./sync-control.sh status
#
# For detailed guide, see: SYNC_GUIDE.md
#
# MANUAL CONTROL:
# ---------------
# - Start: ./sync-control.sh start
# - Stop: ./sync-control.sh stop
# - Pause: ./sync-control.sh pause
# - Resume: ./sync-control.sh resume
# - Restart: ./sync-control.sh restart
# - Reinit: ./sync-control.sh reinit
#
# ==============================================================================
# Template structure (for reference):
# name: "test-to-local"
# task-mode: "all" # full + incremental sync
# target-database:
# host: "tidb"
# port: 4000
# user: "root"
# password: ""
#
# mysql-instances:
# - source-id: "test-tidb"
# block-allow-list: "sync-tables"
#
# block-allow-list:
# sync-tables:
# do-dbs: ["${DATABASE_NAME}"]
# do-tables:
# - db-name: "${DATABASE_NAME}"
# tbl-name: "table1"
# - db-name: "${DATABASE_NAME}"
# tbl-name: "table2"