Using snapshots while setting up full nodes help you sync faster without validating all data. This will speed up for setup dramatically. One can use this to sync faster instead of sync from scratch from other nodes since the Heimdall node sometimes takes days to sync.
Available snapshots
MD5sum: a66c0cfb863970c640ed9312a8f52b5f
Shasum: 1d03863f0f09235996ae4e850f5d3967b78957ab
MD5sum: 4b251fd7d820d08f85309895e91ec663
Shasum: f4804ccf0f11c119ed24b13d7861b7a4421f2bdb
Using Snapshots
Heimdall
First, you need to set up your node with pre-requisites as per the node setup guide. Before you start services for Heimdall to sync, 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 <Snapshot URL>
For example:
wget -c https://matic-blockchain-snapshots.s3.amazonaws.com/matic-mainnet/heimdall-archive-node-snapshot-2021-06-17.tar.gz
This will download the Snapshot of Heimdall.
Now, to unpack the Tar file in the Heimdall Data directory run the following command. You need to ensure that you’re running this command before you Start Heimdall service on your node. If your Heimdall service has started, please stop and then run the below command. Once unpacking is complete you can start the Heimdall service again.
tar -xzvf <snapshot file> -C <HEIMDALL_DATA_DIRECTORY>
For example:
tar -xzvf heimdall-archive-node-snapshot-2021-06-17.tar.gz -C ~/.heimdalld/data/
Note that if your Heimdall data directory is different then please mention that directory name correctly.
Bor
First, you need to set up your node with pre-requisites as per the node setup guide. Before you start services for Bor to sync, 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 <Snapshot URL>
For example:
wget -c https://matic-blockchain-snapshots.s3.amazonaws.com/matic-mainnet/bor-archive-node-snapshot-2021-06-17.tar.gz
Now, 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 Bor service on your node. If your Bor service has started, please stop and then run the below command. Once unpacking is complete you can start the Bor service again.
tar -xzvf <snapshot file> -C <BOR_DATA_DIRECTORY>
For example:
tar -xzvf bor-archive-node-snapshot-2021-06-17.tar.gz -C ~/.bor/data/bor/chaindata
Note that if your bor data directory is different then please mention that directory name correctly.
This is currently the latest Snapshot we have taken of the Blockchain stake. We will keep taking Snapshots every 2 weeks and keep posting this on the Forum and Discord Channels.