Snapshot
Loading...
- We periodically take Snapshots of our networks.
Process Snapshot
Stop the service
1sudo systemctl stop 0gchaind
Backup val state and reset data
1cp $HOME/.0gchain/data/priv_validator_state.json $HOME/.0gchain/priv_validator_state.json.backup20gchaind tendermint unsafe-reset-all --home $HOME/.0gchain
Clean data folder
1rm -rf $HOME/.0gchain/data
Download and unpack the snapshot
- One line command to download and unpack the archive at the same time.
1curl -o - -L https://blockhunters.dev/snapshots/testnet/0g/snapshot.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.0gchain
Restore val state
1cp $HOME/.0gchain/data/priv_validator_state.json.backup $HOME/.0gchain/priv_validator_state.json
Restart node
1sudo systemctl restart 0gchaind && sudo journalctl -u 0gchaind -f