Skip to content

Commit

Permalink
br: add a PITR FAQ to backup and restore FAQs (#12696)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiancai authored Jan 28, 2023
1 parent b92526b commit 531adff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions faq/backup-and-restore-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ TiKV 支持[动态配置](/tikv-control.md#动态修改-tikv-的配置)自动调

## PITR 问题

### [PITR 功能](/br/br-pitr-guide.md)[flashback 集群](/sql-statements/sql-statement-flashback-to-timestamp.md)有什么区别?

从使用场景角度来看,PITR 通常用于在集群完全停止服务或数据损坏且无法使用其他方案恢复时,将集群的数据恢复到指定的时间点。使用 PITR 时,你需要通过一个新的集群来完成数据恢复。而 flashback 集群则通常用于发生误操作或其他因素导致的数据错误时,将集群的数据恢复到数据错误发生前的最近时间点。

在大多数情况下,因为 flashback 具有更短的 RPO(接近零)和 RTO,flashback 比 PITR 更适合由于人为错误导致的数据错误场景。但当集群完全不可用时,flashback 集群功能也无法运行,此时 PITR 是恢复集群的唯一方案。因此,相比于 flashback,虽然 PITR 的 RPO(最长 5 分钟)和 RTO 时间较长,但 PITR 是制定数据库灾难恢复策略时必须考虑的数据安全基础。

### 上游数据库使用 TiDB Lightning Physical 方式导入数据时,为什么无法使用日志备份功能?

目前日志备份功能还没有完全适配 TiDB Lightning,导致 TiDB Lightning Physical 方式导入的数据无法备份到日志中。
Expand Down

0 comments on commit 531adff

Please sign in to comment.