Skip to main content

Pruned-Snapshots

Recover Node from Pruned Snapshot

This guide will walk you through the process of recovering a Story node using an archive snapshot.

Get Snapshot Info

Geth Snapshot

curl https://snapshot.silentvalidator.com/story/snapshot/geth-log.json

Story Consensus Layer Snapshot

curl https://snapshot.silentvalidator.com/story/snapshot/log.json

Stop node

sudo systemctl stop story
sudo systemctl stop story-geth

Back up validator state

cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/priv_validator_state.json.backup

Delete previous data

rm -rf $HOME/.story/geth/story/geth
rm -rf $HOME/.story/story/data

Download story-geth and story snapshots

wget -O geth_snapshot.tar.lz4 https://snapshot.silentvalidator.com/story/snapshot/story_geth.tar.lz4
wget -O story_snapshot.tar.lz4 https://snapshot.silentvalidator.com/story/snapshot/story_latest.tar.lz4

Decompress story-geth and story snapshots

lz4 -c -d geth_snapshot.tar.lz4 | tar -xv -C $HOME/.story/geth/story/
lz4 -c -d story_snapshot.tar.lz4 | tar -xv -C $HOME/.story/story

Recover validator state

mv $HOME/.story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json 

Restart node

sudo systemctl restart story
sudo systemctl restart story-geth