pingcap / pingcap/tidb

Br restore should prevent users from restoring to a database or tables that already exists

Open
#42,893 0 comments 0 reactions 1 assignee Claimed by @YuJuncen View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
Try backup and restore as follows, BR restore failed at the final checksum stage, but all SST files have been injected, which may triage compaction in TiKV, as described in issue https://github.com/tikv/tikv/issues/14540.

tiup br:v7.0.0 backup full --pd 172.16.4.36:2379 --storage "s3://prod-cluster-do-not-remove/backups/20230407-full" --log-file /tmp/backup-full-0407-local-minio.log

/br restore full --pd 172.16.4.36:2379 --storage "s3://prod-cluster-do-not-remove/backups/20230407-full" --ratelimit 128

BR should support checking that before starting the import, and it would be even better if it also supports an option to ignore this check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.