Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: br全量+drainer同步增量就行了是如何搭建的 4.0.7
[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed that caused the issue
[Encountered Issues: Problem Symptoms and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots / Logs / Monitoring]
Experts, can I just use br for full backup and drainer for incremental synchronization?
Need to elaborate on what the problem is.
You can choose snapshot backups for the full backup, and use binlog for the incremental part.
However, it is recommended to upgrade to 6.1.x or 6.5.x and use TiCDC to handle the incremental data capture.
After a full backup with BR, you can obtain a globally consistent timestamp:
COMMIT_TS=`br validate decode --field="end-version" -s local:///home/tidb/backupdata | tail -n1`
Drainer can start syncing from the specified timestamp in the configuration file:
initial-commit-ts = COMMIT_TS
BR full backup is used to back up the data from the source database to the target TiDB cluster, while Drainer is used to synchronize incremental changes from the source database to the target TiDB cluster in real-time.