> For the complete documentation index, see [llms.txt](https://docs.syanodes.my.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.syanodes.my.id/story/snapshot-and-state-sync.md).

# Snapshot & State sync

## Snapshot

```bash
# stop node and backup priv_validator_state.json
sudo systemctl stop story story-geth
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup

# remove old data and unpack Story snapshot
rm -rf $HOME/.story/story/data
curl https://snapshot.syanodes.my.id/story/snapshot-story.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.story/story

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

# remove geth data and unpack Geth snapshot
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
curl https://snapshot.syanodes.my.id/story/snapshot-story-geth.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.story/geth/odyssey/geth

# restart node and check logs
sudo systemctl restart story story-geth && sudo journalctl -u story-geth -u story -f
```

## State Sync

```bash
//
```
