Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 大家的TIDB都采用什么方式备份,如何备份数据的增量
[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed that caused the issue
[Encountered Issues: Problem Phenomenon and Impact] How does everyone back up their TiDB? How do you back up incremental data?
Bro, combining snapshots and logs, incremental backups are just log backups.
TiDB comes with Dumpling for logical backups and BR for physical backups. When using BR for backups, enabling log backups allows for incremental backups. However, there is a time difference of 1 to 3 minutes between the incremental backups and the database, so it cannot guarantee that all data will be recovered if the database crashes.
BR is used more often and backups are faster. If you need to back up a specific database, use Dumpling.
Perform a full backup using BR.
The managed data has not been officially activated yet, mainly consisting of some configuration data. The data volume is not very large, and BR is used for backup.
Cold backup uses BR, hot backup uses TiCDC.
Personally, I think using TiCDC to synchronize to a downstream TiDB cluster is the most perfect backup solution.
Physical backup br + log backup
If the data volume is not particularly large, or for some important tables, daily logical backup with dumpling can also be considered.
No backups, it’s been running for three years.
The latest version of Binlog is gradually being phased out of support.
BR performs a full backup.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.