Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

br: make incremental backup and pitr compatible #54474

Open
BornChanger opened this issue Jul 5, 2024 · 0 comments
Open

br: make incremental backup and pitr compatible #54474

BornChanger opened this issue Jul 5, 2024 · 0 comments
Labels
component/br This issue is related to BR of TiDB. type/enhancement

Comments

@BornChanger
Copy link
Contributor

BornChanger commented Jul 5, 2024

Enhancement

Some BR users want to combine incremental backup and pitr in order to get better RTO and RPO, we need to make them compatible in restricted scenarios.
Sample usage is like this

--Full Restore
./br restore full -s "local:///root/backups/test1/full" -u 127.0.0.1:2379

--Suppose there are N incremental backups, whose backup path names are incremental-*
--And BackupTS of incremental-i is less than that of incremental-j, which i is less than j.

--Incremental Restore incremental-1 ~ incremental-N-1
for i in `seq 1 $((N-1))`; do
    ./br restore full -s "local:///root/backups/test1/incremental-$i" -u 127.0.0.1:2379
done

--Log Restore with Incremental Restore incremental-N as full backup storage
./br restore point -s "local:///root/backups/test1/log" -u 127.0.0.1:2379 --full-backup-storage "local:///root/backups/test1/incremental-$N"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/br This issue is related to BR of TiDB. type/enhancement
1 participant