-
Notifications
You must be signed in to change notification settings - Fork 0
Update br-checkpoint-backup.md #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,13 +6,13 @@ aliases: ["/tidb/dev/br-checkpoint"] | |||||||||
|
|
||||||||||
| # Checkpoint Backup | ||||||||||
|
|
||||||||||
| Snapshot backup might be interrupted due to recoverable errors, such as disk exhaustion and node crash. Before TiDB v6.5.0, data that is backed up before the interruption would be invalidated even after the error is addressed, and you need to start the backup from scratch. For large clusters, this incurs considerable extra cost. | ||||||||||
| Snapshot backup might be interrupted due t recoverable errors, such as disk exhaustion and node crash. Before TiDB v6.5.0, data that is backed up before the interruption would be invalidated even after the error is addressed, and you need to start the backup from scratch. For large clusters, this incurs considerable extra cost. | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo: "due t recoverable" should be "due to recoverable"1 Style Guide References
Suggested change
Footnotes |
||||||||||
|
|
||||||||||
| In TiDB v6.5.0, Backup & Restore (BR) introduces the checkpoint backup feature to allow continuing an interrupted backup. This feature can retain most data of the interrupted backup. | ||||||||||
| In TiDB v6.5.0, Backup & Restore (B) introduces the checkpoint backup feature to allow continuing an interrupted backup. This feature can retain most data of the interrupted backup. | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the tool name abbreviation. The documentation refers to “Backup & Restore (B)” but the correct abbreviation is “BR” (the tool’s name). Proposed diff: - In TiDB v6.5.0, Backup & Restore (B) introduces the checkpoint backup feature to allow continuing an interrupted backup. This feature can retain most data of the interrupted backup.
+ In TiDB v6.5.0, Backup & Restore (BR) introduces the checkpoint backup feature to allow continuing an interrupted backup. This feature can retain most data of the interrupted backup.📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Abbreviation: It might be better to spell out "Backup & Restore" here as "Backup and Restore" for clarity, or use the full abbreviation "(Backup & Restore (BR))"1 Style Guide References
Suggested change
Footnotes |
||||||||||
|
|
||||||||||
| ## Application scenarios | ||||||||||
|
|
||||||||||
| If your TiDB cluster is large and cannot afford to back up again after a failure, you can use the checkpoint backup feature. The br command-line tool (hereinafter referred to as `br`) periodically records the shards that have been backed up. In this way, the next backup retry can use the backup progress close to the abnormal exit. | ||||||||||
| If your TiDB cluster is large and cannot affords to backup again after a failure, users can use the checkpoint backup feature. The br command-line tool (hereinafter referred to as `br`) periodically records the shards that have been backed up. In this way, the next backup retry can use the backup progress close to the abnormal exit. | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Use correct verb forms and neutral tone. The phrase “cannot affords to backup” is grammatically incorrect and still addresses the reader indirectly. Proposed diff: - If your TiDB cluster is large and cannot affords to backup again after a failure, users can use the checkpoint backup feature. The br command-line tool (hereinafter referred to as `br`) periodically records the shards that have been backed up. In this way, the next backup retry can use the backup progress close to the abnormal exit.
+ If a TiDB cluster is large and restarting the backup from scratch is not feasible after a failure, users can use the checkpoint backup feature. The `br` command‑line tool periodically records completed shards, allowing the next retry to resume from the last recorded progress.📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[grammar] ~15-~15: The modal verb ‘cannot’ requires the verb’s base form. (MD_BASEFORM) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Grammar: "cannot affords" should be "cannot afford"1. Also, rephrasing to avoid direct address: "users can use" instead of "you can use"2 Style Guide References
Suggested change
Footnotes |
||||||||||
|
|
||||||||||
| ## Implementation details | ||||||||||
|
|
||||||||||
|
|
@@ -30,7 +30,7 @@ Checkpoint backup relies on the GC mechanism and cannot recover all data that ha | |||||||||
|
|
||||||||||
| During the backup, `br` periodically updates the `gc-safepoint` of the backup snapshot in PD to avoid data being garbage collected. When `br` exits, the `gc-safepoint` cannot be updated in time. As a result, before the next backup retry, the data might have been garbage collected. | ||||||||||
|
|
||||||||||
| To avoid this situation, `br` keeps the `gc-safepoint` for about one hour by default when `gcttl` is not specified. You can set the `gcttl` parameter to extend the retention period if needed . | ||||||||||
| To avoid this situation, `br` keeps the `gc-safepoint` for about one hour by default when `gcttl` is not specified. Users can set the `gcttl` parameter to extend the retention period if needed . | ||||||||||
|
|
||||||||||
| The following example sets `gcttl` to 15 hours (54000 seconds) to extend the retention period of `gc-safepoint`: | ||||||||||
|
|
||||||||||
|
|
@@ -42,7 +42,7 @@ tiup br backup full \ | |||||||||
|
|
||||||||||
| > **Note:** | ||||||||||
| > | ||||||||||
| > The `gc-safepoint` created before backup is deleted after the snapshot backup is completed. You do not need to delete it manually. | ||||||||||
| > The `gc-safepoint` created before backup is deleted after the snapshot backup is completed. Users do not need to delete it manually. | ||||||||||
|
|
||||||||||
| ### Some data needs to be backed up again | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Correct typo and improve clarity in error description.
The phrase “due t recoverable errors” should be “due to recoverable errors”, and the sentence can be rephrased to maintain neutral, third‑person tone.
Proposed diff:
📝 Committable suggestion