Preparing Your System - Install lz4 Compression Tool

sudo apt update
sudo apt install lz4

Downloading the Snapshot

Use wget to download the snapshot file:

wget -O initia_snapshot.tar.lz4

Stop Your Node

sudo service initiad stop

Backup Important Files (If running a validator)

Backup your priv_validator_key.json:

cp ~/.initia/data/priv_validator_state.json ~/.initia/priv_validator_state.json

Reset Your Node

initiad comet unsafe-reset-all --home $HOME/.initia --keep-addr-book

Decompress the Snapshot

Decompress and extract the snapshot to your data directory:

lz4 -c -d initia_snapshot.tar.lz4 | tar -x -C $HOME/.initia/data

Restore the Validator File (If applicable)

If you're a validator, restore your priv_validator_state.json:

cp ~/.initia/priv_validator_state.json ~/.initia/data/priv_validator_state.json

Restart Your Node

sudo service initiad start

Remove the Downloaded Snapshot

To free up space, delete the snapshot file:

rm -v initiad_snapshot.tar.lz4

Check Node Status

Check if your node is running correctly:

sudo service initiad status
sudo journalctl -u initiad-f

Last updated