New Daily Snapshots for Heimdall and Bor

I am excited to announce that Vault Staking is now providing Heimdall and Bor snapshots for the Polygon network! Three new snapshots are now available: Heimdall will be provided daily, Pruned Bor will be provided daily, and Full Node Bor will be provided Monday and Thursday mornings.

Please refer to http://snapshots.vaultstaking.com/polygon/mainnet for the latest snapshots.

Using Snapshots

Heimdall

First, you need to set up your node with pre-requisites as per the node setup guide. Before you start the Heimdall service for the first time, follow the below steps to use snapshot:

Download the Snapshot to your VM. To download the Snapshot Tar file to your VM you can run the following command

wget -c http://snapshots.vaultstaking.com/polygon/mainnet/heimdall-snapshot-2022-06-15.tar.lz4

To unpack the .tar file in the Heimdall data directory, run the following commands. If you have already started the Heimdall service, please stop it first. Once unpacking is complete you can start the Heimdall service again.

sudo apt update
sudo apt install snapd -y
sudo snap install lz4

rm -r ~/.heimdalld/data/*
lz4 -c -d heimdall-snapshot-2022-06-15.tar.lz4 | tar -x -C ~/.heimdalld

Note that if your Heimdall data directory is different then please mention that directory name correctly. When this command completes, you can delete the tar file to reclaim space.

Bor

First, you need to set up your node with pre-requisites as per the node setup guide. Before you start the Bor service, follow the below steps:

Download the Snapshot:

wget -c http://snapshots.vaultstaking.com/polygon/mainnet/bor-pruned-snapshot-2022-06-15.tar.lz4

To unpack the Tar file in the Bor data directory run the following command. You need to ensure that you’re running this command before you start the Bor service on your node. If your Bor service has started, please stop and then run the below commands. Once unpacking is complete you can start the Bor service again.

rm -r ~/.bor/data/bor/chaindata/*
lz4 -c -d bor-pruned-snapshot-2022-06-15.tar.lz4 | tar -x -C ~/.bor/data/bor

Note that if your bor data directory is different then please mention that directory name correctly. When this command completes, you can delete the tar file to reclaim space.

Advanced tips

Streaming Download

Instead of downloading the compressed file to disk (and thus taking up space), you can run the following command to stream the snapshot into your data directory. However, if the download is terminated during mid-stream, you will need to start the download from the beginning again.

curl -o - -L http://snapshots.vaultstaking.com/polygon/mainnet/bor-pruned-snapshot-2022-06-15.tar.lz4 | lz4 -c -d - | tar -x -C ~/.bor/data/bor

Faster Download

Using a tool like aria2c instead of wget can increase download speeds. aria2c is a multi-threaded download tool which should be quicker than the single-threaded wget. This requires extra package installs (sudo apt install aria2c).

4 Likes

thanks for sharing.

Snapshots are no longer being updated.