Skip to content

Commit 0f01c9b

Browse files
authored
br: fix description about case-sensitive and insensitive (pingcap#20438) (pingcap#20504)
1 parent cb8c760 commit 0f01c9b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

br/backup-and-restore-overview.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,45 @@ Before performing backup and restore, BR compares the TiDB cluster version with
126126

127127
Starting from v7.0.0, TiDB gradually supports performing backup and restore operations through SQL statements. Therefore, it is strongly recommended to use the BR tool of the same major version as the TiDB cluster when backing up and restoring cluster data, and avoid performing data backup and restore operations across major versions. This helps ensure smooth execution of restore operations and data consistency.
128128

129+
#### BR version compatibility matrix before TiDB v6.6.0
130+
129131
The compatibility information for BR before TiDB v6.6.0 is as follows:
130132

131133
| Backup version (vertical) \ Restore version (horizontal) | Restore to TiDB v6.0 | Restore to TiDB v6.1 | Restore to TiDB v6.2 | Restore to TiDB v6.3, v6.4, or v6.5 | Restore to TiDB v6.6 |
132134
| ---- | ---- | ---- | ---- | ---- | ---- |
133135
| TiDB v6.0, v6.1, v6.2, v6.3, v6.4, or v6.5 snapshot backup | Compatible (known issue [#36379](https://github.com/pingcap/tidb/issues/36379): if backup data contains an empty schema, BR might report an error.) | Compatible | Compatible | Compatible | Compatible (BR must be v6.6) |
134136
| TiDB v6.3, v6.4, v6.5, or v6.6 log backup| Incompatible | Incompatible | Incompatible | Compatible | Compatible |
135137

138+
#### BR version compatibility matrix between TiDB v6.5.0 and v7.5.0
139+
140+
This section introduces the BR compatibility information for all [Long-Term Support (LTS)](/releases/versioning.md#long-term-support-releases) versions between TiDB v6.5.0 and v7.5.0 (including v6.5.0, v7.1.0, v7.5.0):
141+
142+
> **Note:**
143+
>
144+
> Known issue: Starting from version v7.2.0, some system table fields in newly created clusters are case-insensitive. However, for clusters that are **upgraded online** from versions earlier than v7.2.0 to v7.2.0 or later, the corresponding system table fields remain case-sensitive. Backup and restore operations involving system tables between these two types of clusters might fail. For more details, see [Issue #43717](https://github.com/pingcap/tidb/issues/43717).
145+
146+
The following table lists the compatibility matrix for full backups. Note that all information in the table applies to newly created clusters. For clusters upgraded from a version earlier than v7.2.0 to v7.2.0 or later, their behavior is consistent with that of backups from v7.1.0.
147+
148+
| Backup version | Compatible restore versions | Incompatible restore versions |
149+
|:--|:--|:--|
150+
| v6.5.0 | 7.1.0 | v7.5.0 and later |
151+
| v7.1.0 | - | v7.5.0 and later |
152+
| v7.5.0 | v7.5.0 and later | - |
153+
154+
The following table lists the compatibility matrix for log backups. Note that all information in the table applies to newly created clusters. For clusters upgraded from a version earlier than v7.2.0 to v7.2.0 or later, their behavior is consistent with that of backups from v7.1.0.
155+
156+
| Backup version | Compatible restore versions | Incompatible restore versions |
157+
|:--|:--|:--|
158+
| v6.5.0 | 7.1.0 | v7.5.0 and later |
159+
| v7.1.0 | - | v7.5.0 and later |
160+
| v7.5.0 | v7.5.0 and later | - |
161+
162+
> **Note:**
163+
>
164+
> - When only user data is backed up (full backup or log backup), all versions are compatible with each other.
165+
> - In scenarios where restoring the `mysql` system table is incompatible, you can resolve the problem by setting `--with-sys-table=false` to skip restoring all system tables, or use a more fine-grained filter to just skip incompatible system tables, for example: `--filter '*.*' --filter "__TiDB_BR_Temporary_*.*" --filter '!mysql.*' --filter 'mysql.bind_info' --filter 'mysql.user' --filter 'mysql.global_priv' --filter 'mysql.global_grants' --filter 'mysql.default_roles' --filter 'mysql.role_edges' --filter '!sys.*' --filter '!INFORMATION_SCHEMA.*' --filter '!PERFORMANCE_SCHEMA.*' --filter '!METRICS_SCHEMA.*' --filter '!INSPECTION_SCHEMA.*'`.
166+
> - `-` means that there are no compatibility restrictions for the corresponding scenario.
167+
136168
## See also
137169

138170
- [TiDB Snapshot Backup and Restore Guide](/br/br-snapshot-guide.md)

0 commit comments

Comments
 (0)