Problem with BR Restore

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

Original topic: br恢复问题

| username: yulei7633

Currently, there are two clusters. The first cluster is built with multiple machines, and the second cluster is built with a single machine.

Using the br tool to back up a single database from the first cluster, the command is as follows:

tiup br backup db --pd "192.168.201.5:2379" --db test --storage "local:///nfs/backup" --ratelimit 120 --log-file backupdb.log

Restoring this backup in the first cluster results in no issues. The command is as follows:

tiup br restore db --pd "192.168.201.4:2379" --db "test" --storage "local:///nfs/backup" --log-file restoredb.log

Question: I want to copy the backup set from the first cluster to the second cluster to restore the data. The restore command is as follows:

tiup br restore db --pd "10.0.46.3:2379" --db "test" --storage "local:///root/tidb/backup" --log-file restoredb.log

The permissions for /root/tidb/backup are set to 777. When executing the restore, the following error is reported:

Error: Permission denied (os error 13): [BR:KV:ErrKVDownloadFailed]download sst failed;

What is causing this issue?

| username: RenlySir | Original post link

For the second cluster, check if TiKV has mounted NFS. If not, it needs to be mounted. If it is mounted, check if the permissions are sufficient.

| username: Fly-bird | Original post link

Give the backup files full permissions for the second cluster. The second cluster needs to be able to see all the backup files on the first cluster’s KV.

| username: yulei7633 | Original post link

Hello, the backup file, the second cluster already has full permissions: screenshot below:

| username: RenlySir | Original post link

How about mounting the TiKV clusters of both clusters to the same NFS and trying it out?

| username: yulei7633 | Original post link

Hello, I will test it again according to your method.

| username: yulei7633 | Original post link

After testing, it worked after mounting NFS. Thank you.

| username: RenlySir | Original post link

Nice~

| username: yulei7633 | Original post link

Thank you.

| username: Kongdom | Original post link

Has this issue been resolved?
If it has been resolved, please mark the question as [This content was helpful to me] so that the issue can be searchable and help others find the answer more efficiently.
If your issue has not been resolved, please continue to ask and provide feedback on the problems you encountered, including operation prompts or screenshots.