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: Adjust the backup organization structure #12958
Conversation
Signed-off-by: Gaoming <zhanggaoming028@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Welcome @MoCuishle28! |
/run-integration-br-tests |
Signed-off-by: Gaoming <zhanggaoming028@gmail.com>
/run-integration-br-tests |
/run-integration-br-tests |
/rebuild |
/run-integration-br-tests |
1 similar comment
/run-integration-br-tests |
/run-build |
/run-integration-br-tests |
Signed-off-by: MoCuishle28 <32541204+MoCuishle28@users.noreply.github.com>
components/backup/src/endpoint.rs
Outdated
region.get_region_epoch().get_version() | ||
), | ||
Some(k) => { | ||
if storage_name == S3Storage::name() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some comments and unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments and unit tests have been added. PTLA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match (key, storage_name) {
Some(k), S3Storage::name()|LocalStorage::name() =>
Some(k), _ =>
None, S3Storage::name()|LocalStorage::name() =>
None, _ =>
}
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-5.4 in PR #13064 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-6.0 in PR #13065 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-6.1 in PR #13066 |
close tikv#13063 Adjust the backup organization structure and add a store_id related prefix under the backup path. Signed-off-by: Gaoming <zhanggaoming028@gmail.com> Signed-off-by: MoCuishle28 <32541204+MoCuishle28@users.noreply.github.com> Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com>
Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com>
Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
ref #12958, close #13063 Adjust the backup organization structure and add a store_id related prefix under the backup path. Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com> Co-authored-by: MoCuishle28 <32541204+MoCuishle28@users.noreply.github.com> Co-authored-by: MoCuishle28 <zhanggaoming028@gmail.com> Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: 3pointer <luancheng@pingcap.com>
Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com> Signed-off-by: 3pointer <luancheng@pingcap.com>
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com> Signed-off-by: 3pointer <luancheng@pingcap.com>
ref #12958, close #13063 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: 3pointer <luancheng@pingcap.com> Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com> Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com> Co-authored-by: MoCuishle28 <32541204+MoCuishle28@users.noreply.github.com> Co-authored-by: MoCuishle28 <zhanggaoming028@gmail.com> Co-authored-by: zhanggaoming <gaoming.zhang@pingcap.com>
ref #12958, close #13063 Adjust the backup organization structure and add a store_id related prefix under the backup path. Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Signed-off-by: MoCuishle28 <zhanggaoming028@gmail.com> Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com> Co-authored-by: MoCuishle28 <32541204+MoCuishle28@users.noreply.github.com> Co-authored-by: MoCuishle28 <zhanggaoming028@gmail.com> Co-authored-by: zhanggaoming <gaoming.zhang@pingcap.com>
Signed-off-by: Gaoming zhanggaoming028@gmail.com
What is changed and how it works?
Issue Number: Close #13063
What's Changed:
Related changes
None
Check List
Tests
Manual test
tiup br backup db
to backup the db to S3.drop
the backup db.tiup br restore db
to restore the backup on S3.br
for backup, and the after-modifiedbr
for recovery.br
for backup, and the pre-modifiedbr
for recovery.Test output
tiup br restore db
successfully.Release note