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

refine meta backup and restore process of local storage #8

Merged
merged 14 commits into from
Jul 16, 2021

Conversation

linkensphere201
Copy link
Contributor

@linkensphere201 linkensphere201 commented Jul 8, 2021

this pr includes:

  • meta backup and restore process of local storage refinement: fix restore failed for multiple meta service in local storage.
  • add an option of backup command to show more information: now we can run with --verbose to show backup information.
  • add some unit tests

…load meta's backup ssts to the client location, together with the generated meta file.

verbose: add an option `--verbose` for backup to show more information.
add some unit tests for ssh & utils mod.
@CLAassistant
Copy link

CLAassistant commented Jul 8, 2021

CLA assistant check
All committers have signed the CLA.

Comment on lines +13 to +14
SCHEME_OSS = "oss"
SCHEME_S3 = "s3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we already support OSS and S3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now oss and s3 are at experimental stage, would be ready at next version. I'll mark that.

@bright-starry-sky
Copy link
Contributor

One question , if SSH unencrypting fails, this command will always retry?

@linkensphere201
Copy link
Contributor Author

One question , if SSH unencrypting fails, this command will always retry?

Good catch, it seems so. I'll check that.

Copy link
Contributor

@critical27 critical27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM

pkg/backup/backup.go Outdated Show resolved Hide resolved
pkg/backup/backup.go Show resolved Hide resolved
pkg/backup/backup.go Show resolved Hide resolved
pkg/storage/local.go Show resolved Hide resolved
@linkensphere201
Copy link
Contributor Author

  • modified as review mentioned.
  • introduce a better operation to restore.
  • show subcommand bugfix.
  • add version infomation.

@linkensphere201
Copy link
Contributor Author

fix #10

@linkensphere201
Copy link
Contributor Author

  • fix 2 oss backend bugs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants