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

cmd: add dump command to dump metadata to a file and load to load from a file #510

Merged
merged 12 commits into from
Jun 15, 2021

Conversation

SandyXSD
Copy link
Contributor

@SandyXSD SandyXSD commented Jun 10, 2021

close #50

Todo:

  • calculate slice refs when loading
  • customize json marshal to stream encode/decode; and to make the dumped file more compact

@SandyXSD SandyXSD requested a review from davies June 11, 2021 14:53
@davies
Copy link
Contributor

davies commented Jun 11, 2021

@Sandy4999 Could you add a few unit tests for them? loading a sample file into redis/db, verify some functions, then dump it again, and compare the results.

@SandyXSD SandyXSD changed the title cmd: add backup command to dump meta to a file or load from a file cmd: add dump command to dump metadata to a file and load to load from a file Jun 15, 2021
Copy link
Contributor

@davies davies left a comment

Choose a reason for hiding this comment

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

pending on unit test

@davies davies merged commit 69b05e0 into main Jun 15, 2021
@davies davies deleted the wip-meta-backup branch June 15, 2021 14:00
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.

Backup tool for meta
2 participants