This guide explains how to quickly synchronize your Shibarium Heimdall and Bor nodes using official snapshot files. Using snapshots reduces sync time and helps recover or migrate nodes efficiently.
Downloading Snapshots
Links to download the latest snapshots can be found on the official Snapshots page. Replace
<snapshot_url>
with the actual URL provided there.Heimdall Node Synchronization
1
Stop Heimdall Service
sudo systemctl stop heimdalld
2
Navigate to Heimdall Data Directory
cd /var/lib/heimdall/data/
3
Remove Existing Data (if necessary)
rm -rf application.db blockstore.db cs.wal evidence.db state.db tx_index.db
4
Download the Latest Snapshot
wget -c <snapshot_url>
5
Extract the Snapshot File
tar -zxvf <file>
6
Remove the Snapshot File
rm -rf <file>
7
Start Heimdall Service
sudo systemctl start heimdalld
8
Monitor Heimdall Service Logs
sudo journalctl -u heimdalld.service -f
Bor Node Synchronization
1
Stop Bor Service
sudo systemctl stop bor
2
Navigate to Bor Data Directory
cd /var/lib/bor/data/bor/
3
Remove Existing Data (if necessary)
rm -rf LOCK chaindata/ lightchaindata/ nodes/ triecache/
4
Download the Latest Snapshot
wget -c <snapshot_url>
5
Extract the Snapshot File
tar -zxvf <file>
6
Remove the Snapshot File
rm -rf <file>
7
Start Bor Service
sudo systemctl start bor
8
Monitor Bor Service Logs
sudo journalctl -u bor.service -f
Notes
- Replace
<snapshot_url>
with the actual URL of the snapshot file. - Replace
<file>
with the actual filename of the downloaded snapshot.
By following these instructions, you can efficiently sync your Heimdall and Bor nodes using the latest snapshot data, ensuring optimal performance and minimal downtime.