Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
## Deploying TiUPcurl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | shsource /root/.bash_profile## Deploying and Upgrading BR to the Latest Versiontiup install brtiup update --self && tiup update br
## Deploying the TiDB2TDSQL Toolchmod +x bin/tidb2tdsql
# Obtaining the secret_id and secret_key for a Tencent Cloud COS Bucketexport AWS_ACCESS_KEY_ID=${cos_secret_id}export AWS_SECRET_ACCESS_KEY=${cos_secret_key}tiup br backup full --pd "${PD_IP}:2379" \\--storage "s3://db_br?endpoint=https://source_address.cos.ap-guangzhou.myqcloud.com?AWS_ACCESS_KEY_ID=${cos_secret_id}&AWS_SECRET_ACCESS_KEY=${cos_secret_key}" \\--s3.region="ap-guangzhou" \\--s3.provider="cos"
# Obtaining the secret_id and secret_key for a Tencent Cloud COS Bucketexport AWS_ACCESS_KEY_ID=${cos_secret_id}export AWS_SECRET_ACCESS_KEY=${cos_secret_key}tiup br validate decode --field="end-version" \\--storage"s3://db_br?endpoint=https://source_address.cos.ap-guangzhou.myqcloud.com" \\--s3.region="ap-guangzhou" \\--s3.provider="cos" | tail -n1
463592975341191170
# Obtaining the secret_id and secret_key for a Tencent Cloud COS Bucketexport AWS_ACCESS_KEY_ID=${cos_secret_id}export AWS_SECRET_ACCESS_KEY=${cos_secret_key}bin/tidb2tdsql dump --worker-count 64 \\--storage "s3://db_br?endpoint=https://source_address.cos.ap-guangzhou.myqcloud.com" \\--s3.region="ap-guangzhou" \\--s3.provider="cos" \\--output "s3://db_tdsql?endpoint=https://target_address.cos.ap-guangzhou.myqcloud.com"
{schema}-schema-create.sql: SQL file to create schema{schema}.{table}-schema.sql: SQL file to create table{schema}.{table}.{000000001}.{sql}: data file stored by shard{schema}.{view}-schema-view.sql: SQL file for the view.$ cat metadata# Started dump at: 2026-01-15 17:54:08[myloader_session_variables]SQL_MODE='NO_ENGINE_SUBSTITUTION'[config]max-statement-size = 1048576# SHOW MASTER STATUS:# Log: tidb-br-dump# Pos: 463592975341191170# GTID:# Finished dump at: 2026-01-15 17:54:36
463592975341191170 in the example.Create changefeed successfully, then the synchronization task is created successfully.normal, the synchronization task is running normally.tiup cdc cli changefeed list --pd=http://172.16.6.122:2379[{"id": "totdsqlc","summary": {"state": "normal","tso": 463592975341191170,"checkpoint": "2026-01-15 17:54:36.270","error": null}}]
# Diff Configuration.######################### Datasource config #########################[data-sources][data-sources.upstream]host = "172.20.6.11" # needs to be replaced with the actual upstream cluster ipport = 4000user = "root"password = "YourPassword"snapshot = "436138236720447494" # set to the actual backup timestamp TSO[data-sources.downstream]host = "172.20.6.88" # needs to be replaced with the actual downstream cluster ipport = 3306user = "root"password = "YourPassword"######################### Task config #########################[task]output-dir = "./output"source-instances = ["upstream"]target-instance = "downstream"target-check-tables = ["*.*"]
피드백