Skip to content

Commit b7ce61a

Browse files
authored
br: support pitr filter and concurrent restore (#21835)
1 parent a51a2f2 commit b7ce61a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

br/br-pitr-manual.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@ tiup br restore point --pd="${PD_IP}:2379" \
548548
> - The filter options apply during the restore phase for both snapshot and log backups.
549549
> - You can specify multiple `--filter` options to include or exclude different patterns.
550550
> - PITR filtering does not support system tables yet. If you need to restore specific system tables, use the `br restore full` command with filters instead. Note that this command restores only the snapshot backup data (not log backup data).
551+
> - The regular expression in the restore task matches the table name at the `restored-ts` time point, with the following three possible cases:
552+
> - Table A (table id = 1): the table name always matches the `--filter` regular expression at and before the `restored-ts` time point. In this case, PITR restores the table.
553+
> - Table B (table id = 2): the table name does not match the `--filter` regular expression at some point before `restored-ts`, but matches at the `restored-ts` time point. In this case, PITR restores the table.
554+
> - Table C (table id = 3): the table name matches the `--filter` regular expression at some point before `restored-ts`, but does **not** match at the `restored-ts` time point. In this case, PITR does **not** restore the table.
555+
> - You can use the database and table filtering feature to restore part of the data online. During the online restore process, do **not** create databases or tables with the same names as the restored objects, otherwise the restore task fails due to conflicts. To avoid data inconsistency, the tables created by PITR during this restore process are not readable or writable until the restore task is complete.
551556
552557
### Concurrent restore operations
553558
@@ -575,7 +580,8 @@ tiup br restore point --pd="${PD_IP}:2379" \
575580
576581
> **Note:**
577582
>
578-
> Each concurrent restore operation must target a different database or a non-overlapping set of tables. Attempting to restore overlapping datasets concurrently will result in an error.
583+
> - Each concurrent restore operation must target a different database or a non-overlapping set of tables. Attempting to restore overlapping datasets concurrently will result in an error.
584+
> - Multiple restore tasks consume a lot of system resources. It is recommended to run concurrent restore tasks only when CPU and I/O resources are sufficient.
579585
580586
### Compatibility between ongoing log backup and snapshot restore
581587

0 commit comments

Comments
 (0)