Skip to main content

Downloading Snapshots

info

Links to download snapshots can be found on the Snapshots page. This is where you can find the URLs to replace <snapshot_url>.

Heimdall Node Synchronisation

To synchronise your Heimdall node using the latest snapshot, follow these steps:

  • Stop Heimdall Service
sudo systemctl stop heimdalld
  • Navigate to Heimdall Data Directory:
cd /var/lib/heimdall/data/
  • Remove Existing Data (if necessary for fixing node):
rm -rf application.db blockstore.db cs.wal evidence.db state.db tx_index.db
  • Download the Latest Snapshot:
wget -c <snapshot_url>
  • Extract the Snapshot File:
tar -zxvf <file>
  • Remove the Snapshot File:
rm -rf <file>
  • Start Heimdall Service:
sudo systemctl start heimdalld
  • Monitor Heimdall Service Logs:
sudo journalctl -u heimdalld.service -f

Bor Node Synchronisation

To synchronise your Bor node using the latest snapshot, follow these steps:

  • Stop Bor Service:
sudo systemctl stop bor
  • Navigate to Bor Data Directory:
cd /var/lib/bor/data/bor/
  • Remove Existing Data (if necessary for fixing node):
rm -rf LOCK chaindata/ lightchaindata/ nodes/ triecache/
  • Download the Latest Snapshot:
wget -c <snapshot_url>
  • Extract the Snapshot File:
tar -zxvf <file>
  • Remove the Snapshot File:
rm -rf <file>
  • Start Bor Service:
sudo systemctl start bor
  • 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.