Skip to content

br: pitr restore mode #20559

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions br/br-pitr-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ Restore KV Files <--------------------------------------------------------------
*** ["restore log success summary"] [total-take=xxx.xx] [restore-from={TS}] [restore-to={TS}] [total-kv-count=xxx] [total-size=xxx]
```

在恢复期间,恢复的表的 Table Mode 会被自动设置为 `restore`,处于 Restore Mode 的表会禁止用户执行任何读写操作。当数据恢复完成时,Table Mode 会被自动恢复到 `normal` 状态,用户可以正常读写该表,从而提升数据恢复期间的任务稳定性和数据一致性。

## 清理过期的日志备份数据

如[使用指南概览](/br/br-use-overview.md)所述:
Expand Down
2 changes: 2 additions & 0 deletions br/br-snapshot-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Restore Pipeline <--------------------------------------------------------------
*** ["Full Restore success summary"] [total-ranges=20] [ranges-succeed=20] [ranges-failed=0] [merge-ranges=7.546971ms] [split-region=343.594072ms] [restore-files=1.57662s] [default-CF-files=6] [write-CF-files=14] [split-keys=9] [total-take=4.344617542s] [total-kv=5] [total-kv-size=327B] [average-speed=75.27B/s] [restore-data-size(after-compressed)=4.813kB] [Size=4813] [BackupTS=435844901803917314]
```

在恢复期间,恢复的表的 Table Mode 会被自动设置为 `restore`,处于 Restore Mode 的表会禁止用户执行任何读写操作。当数据恢复完成时,Table Mode 会被自动恢复到 `normal` 状态,用户可以正常读写该表,从而提升数据恢复期间的任务稳定性和数据一致性。

### 恢复备份数据中指定库表的数据

br 命令行工具支持只恢复备份数据中指定库、表的部分数据,该功能用于在恢复过程中过滤不需要的数据。
Expand Down