Recovering your Chihuahua node from a snapshot is an efficient way to restore your node without syncing from genesis, significantly reducing downtime. This guide provides detailed instructions on how to use snapshots from s3.chainroot.io
for recovery.
Before starting the recovery process, ensure that you have:
Ensure that no processes are running that might modify the data while you’re performing the snapshot recovery.
sudo systemctl stop chihuahuad
Download the latest snapshot available from s3.chainroot.io
. It’s recommended to use wget
or curl
for downloading.
wget https://s3.chainroot.io/snapshots/chihuahua/chihuahua-latest.tar.lz4
Once the download is complete, extract the snapshot file to the appropriate directory, typically where your Chihuahua data is stored.
lz4 -c -d chihuahua-latest.tar.lz4 | tar -x -C $HOME/.chihuahua
After successfully extracting the snapshot, restart your node. It will start syncing from the point the snapshot was taken.
sudo systemctl start chihuahuad
After starting your node, it’s important to verify that it is syncing correctly.
chihuahuad status
This command should show that your node is catching up from the snapshot height to the current block height.
Using snapshots for recovery can significantly reduce the time it takes to get your Chihuahua node operational after downtime or when migrating to new hardware. Always ensure that snapshots are obtained from reliable sources and that you have backups of your own node to prevent data loss.
For more advanced recovery options or troubleshooting, consult the Chihuahua documentation or reach out to the support community.