March 4, 2023

How to install snapshot NOLUS

Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory.

Stop the service and reset the data

sudo systemctl stop nolusd
cp $HOME/.nolus/data/priv_validator_state.json $HOME/.nolus/priv_validator_state.json.backup
rm -rf $HOME/.nolus/data

Download latest snapshot

cd $HOME/wget http://95.217.166.6:8000/nolusdata.tar.gz | tar -C $HOME/ -zxvf nolusdata.tar.gz --strip-components 1
mv $HOME/.nolus/priv_validator_state.json.backup $HOME/.nolus/data/priv_validator_state.json

Restart the service and check the log

sudo systemctl start nolusd && sudo journalctl -u nolusd -f --no-hostname -o cat

after all you can check the work on the logs