Does BR support restoring backups from lower versions to higher versions?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: br是否支持备份低版本数据恢复到高版本上

| username: residentevil

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.1.2
[Encountered Problem: Problem Phenomenon and Impact] Can a backup set created with br on v6.5.5 be restored to v7.1.2?

| username: heiwandou | Original post link

I haven’t done it, you can try it, it probably won’t work.

| username: 路在何chu | Original post link

This is not possible. The physical files are different in each version.

| username: tidb菜鸟一只 | Original post link

Not possible.

| username: Jolyne | Original post link

No, there are versions related to relationships.

| username: xfworld | Original post link

This is not supported.

| username: Fly-bird | Original post link

Not supported, versions need to be consistent.

| username: 啦啦啦啦啦 | Original post link

For cross-version operations, it’s better to use the dumpling logic for import and export.

| username: Kongdom | Original post link

The official documentation indicates that it is not supported.
It is strongly recommended to use the BR tool of the same major version as the TiDB cluster when backing up and restoring the cluster, and to avoid performing data backup and restore operations across major versions.

| username: 小龙虾爱大龙虾 | Original post link

Learned :+1:

| username: residentevil | Original post link

It seems that minor versions are still compatible, but major versions are not. Thank you.

| username: residentevil | Original post link

Thank you all for your support :+1:

| username: TIDB-Learner | Original post link

There are version compatibility issues. Understandable.
The br tool uses SST files for backup and restore. Is there a significant difference in the data file format? Versions 6.5 and 7.5 are from almost the same year, yet they are not compatible?
Does anyone know which new features caused this? Looking forward to expert guidance.

| username: TiDBer_vfJBUcxl | Original post link

Use dumpling for logical import and export.

| username: zhanggame1 | Original post link

The SST file may not have changed, but the system tables inside it have definitely changed and need to be accessed during runtime.

| username: Kongdom | Original post link

:handshake: Yes, minor versions might be compatible, but major version changes can be quite significant. After all, each major version comes with substantial improvements and adjustments.

| username: dba远航 | Original post link

Crossing minor versions should be fine, but not major versions.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.