[TiDB Usage Environment] Production Environment
[TiDB Version] V6.5.8
[Encountered Problem: Problem Description and Impact] How to use the br tool to back up data to the public cloud BOS in TiDB? Are there any detailed commands? The official documentation only covers the S3 scenario.
Because multiple TiKV instances are deployed on one server, I see that each instance has a backup set during the backup period. The current solution I have in mind is to mount a large disk machine through NFS, etc., back up the backup set to the large disk machine, and then upload it to BOS. This solution is equivalent to an intermediate transfer, which consumes bandwidth and doubles the time.
I am doing this now, backing up and uploading to OSS is very fast and won’t double the time. However, an additional NFS server with a large disk is indeed needed.
Yes, a base backup is definitely necessary. The backup cycle can be extended, for example, one base backup per week and one incremental backup per day. However, regardless, the data transfer at this scale is quite challenging. So, I was thinking if BR could directly transfer the data to BOS storage, it would be relatively better, at least reducing one intermediate transfer.
If using Tencent Cloud’s BOS, you also need to configure endpoint, ak, sk, and other information. How should the command be written when backing up with br? Could you please provide a demo?
–s3.endpoint should be filled with the address closest to your machine.
–ratelimit should have a reasonable limit, otherwise, the backup can easily occupy the bandwidth and cause continuous errors.
The storage can also be written this way, with the access-key and secret-access-key included. However, it is highly not recommended because it is not secure; it is better to put them in the configuration file.