Does breakpoint backup require deleting both checkpoint.lock and backup.lock? Is it necessary to delete backup.lock?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: br 断点备份需要吧checkpoint.lock和backup.lock都删除吗?backup.lock需要删除吗

| username: Holland

【TiDB Usage Environment】Testing
【TiDB Version】v7.1.2
【Reproduction Path】Operations performed that led to the issue
【Encountered Issue: Issue Phenomenon and Impact】
【Resource Configuration】
【Attachments: Screenshots/Logs/Monitoring】

| username: Billmay表妹 | Original post link

When using the br tool for checkpoint backup, you need to delete the checkpoint.lock file, but you do not need to delete the backup.lock file.

The checkpoint.lock file is used to prevent multiple backups to the same directory. When performing a checkpoint backup, you need to delete this file so that the br tool can proceed with the backup operation normally. You can use the following command to delete the checkpoint.lock file:

rm checkpoint.lock

On the other hand, the backup.lock file is a lock file used during the backup process to ensure consistency. During a checkpoint backup, you do not need to delete the backup.lock file because it is used to control resource access and consistency during the backup process. Deleting the backup.lock file may lead to data inconsistency or other issues during the backup process.

Therefore, when performing a checkpoint backup, you only need to delete the checkpoint.lock file and do not need to delete the backup.lock file.

| username: 大飞哥online | Original post link

You just need to delete the checkpoint.lock file, that’s all. Detailed explanation, got it, haha.

| username: Holland | Original post link

Okay, thank you.

| username: Holland | Original post link

Thank you, cousin. I tested it and there are no issues.

| username: oceanzhang | Original post link

By the way, we also learned.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.