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

Miner backup/restore commands #4133

Merged
merged 16 commits into from
Oct 6, 2020
Merged

Miner backup/restore commands #4133

merged 16 commits into from
Oct 6, 2020

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Oct 1, 2020

Online backup:

lotus-miner backup backup.cbor

Offline backup (datastores in read-only mode, potentially better at recovering from corrupted datastores):

lotus-miner backup --offline backup.cbor

Restore:

lotus-miner init restore --config backup/config.toml --storage-config backup/storage.json backup/backup.cbor

(as a bonus this PR also adds the backup command to lotus daemon, but no restore yet)

(decent chunk of this diff is in lotus-shed datastore utils, partially cherrypicked from the big worker refactor PR)

@Kubuxu
Copy link
Contributor

Kubuxu commented Oct 5, 2020

Nice, I like the encoding.
Would be even nicer if it contained a checksum at the end.

@magik6k magik6k merged commit 0e2f697 into master Oct 6, 2020
@magik6k magik6k deleted the feat/backup branch October 6, 2020 00:05
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

2 participants