Snapshot

Prune snapshot: 1210744 | Archive snapshot: 1202279
-
Install tool
Terminal window sudo apt-get install wget lz4 aria2 pv -y -
Stop node
Terminal window sudo systemctl stop storysudo systemctl stop story-geth -
Download snapshot
-
Story data:
Terminal window #pruning = "default", indexer = "null", disables state snapshots, app-db-backend = "goleveldb"cd $HOMErm -f Story_snapshot.lz4aria2c -x 16 -s 16 -k 1M https://story.j-node.net/mainnet/Story_snapshot.lz4Terminal window #pruning = "nothing", indexer = "kv"cd $HOMErm -f archive_Story_snapshot.lz4aria2c -x 16 -s 16 -k 1M https://story.j-node.net/mainnet/archive_Story_snapshot.lz4 -
Geth data:
Terminal window cd $HOMErm -f Geth_snapshot.lz4aria2c -x 16 -s 16 -k 1M https://story.j-node.net/mainnet/Geth_snapshot.lz4Terminal window cd $HOMErm -f archive_Geth_snapshot.lz4aria2c -x 16 -s 16 -k 1M https://story.j-node.net/mainnet/archive_Geth_snapshot.lz4
-
-
Backup
priv_validator_state.json
Terminal window cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/priv_validator_state.json.backup -
Remove old data
Terminal window rm -rf $HOME/.story/story/datarm -rf $HOME/.story/geth/story/geth/chaindata -
Decompress snapshot
-
Story data:
Terminal window sudo mkdir -p $HOME/.story/story/datalz4 -d -c Story_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/story/ > /dev/nullTerminal window sudo mkdir -p $HOME/.story/story/datalz4 -d -c archive_Story_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/story/ > /dev/null -
Geth data:
Terminal window sudo mkdir -p $HOME/.story/geth/story/geth/chaindatalz4 -d -c Geth_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/geth/story/geth/ > /dev/nullTerminal window sudo mkdir -p $HOME/.story/geth/story/geth/chaindatalz4 -d -c archive_Geth_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/geth/story/geth/ > /dev/null
-
-
Move
priv_validator_state.json
backTerminal window cp $HOME/.story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json -
Restart node
Terminal window sudo systemctl restart story story-gethsudo journalctl -u story-geth -u story -f