Skip to content

feat(store): add local snapshots management commands#12

Merged
VictorTrustyDev merged 2 commits into
mainfrom
feat/add-snapshot-command
Dec 31, 2023
Merged

feat(store): add local snapshots management commands#12
VictorTrustyDev merged 2 commits into
mainfrom
feat/add-snapshot-command

Conversation

@VictorTrustyDev
Copy link
Copy Markdown

@VictorTrustyDev VictorTrustyDev commented Dec 31, 2023

Read details help: evmd snapshots --help

Or here:

How to use "evmd snapshot" command:

In this context, we gonna to export snapshot for height 100000

1. Create state-sync snapshot on a running node with "export"
> sudo systemctl stop evmd
> evmd snapshots export --height 100000
You gonna get state-sync snapshot at ".evermint/snapshots/" dir as usual:
> Log: Snapshot created at height 100000, format 3, chunks 10

2. Pack snapshot with "dump":
> evmd snapshots dump 100000 3
You gonna get "100000-3.tar.gz" at current working directory

3. Share to another node or reset data of current node with "unsafe-reset-all"

4. Unsafe-reset the node and unpack snapshot with "load":
> evmd snapshots load 100000-3.tar.gz

5. Then restore app state with "restore":
> evmd snapshots restore 100000 3
You gonna get "data/application.db" unpacked

6. Now bootstrap state with "bootstrap-state":
evmd tendermint bootstrap-state

@VictorTrustyDev VictorTrustyDev added the new-feature New feature/request label Dec 31, 2023
@VictorTrustyDev VictorTrustyDev self-assigned this Dec 31, 2023
@VictorTrustyDev VictorTrustyDev force-pushed the feat/add-snapshot-command branch from 86614c2 to 769089f Compare December 31, 2023 17:42
@VictorTrustyDev VictorTrustyDev merged commit 0d54581 into main Dec 31, 2023
@VictorTrustyDev VictorTrustyDev deleted the feat/add-snapshot-command branch December 31, 2023 17:44
VictorTrustyDev added a commit that referenced this pull request Dec 31, 2023
…t-12

feat(store): add local `snapshots` management commands (backport #12)
@VictorTrustyDev VictorTrustyDev mentioned this pull request Dec 31, 2023
4 tasks
@VictorTrustyDev VictorTrustyDev linked an issue Dec 31, 2023 that may be closed by this pull request
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New feature/request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TODO: new features

2 participants