Instructions for Polygon Amoy Heimdall Snapshot
The instructions below will fully restore Bor's data directory by downloading each file and subdirectories individually. Use aria2 or wget to download all of the Bor files. Last, modify the ownership of the files so Heimdall can access them.
Stop the heimdall services
service heimdalld stop
//OR
systemctl stop heimdalld.service
Navigate to the directory with your heimdall data store in it, then download the compress file.
cd /var/lib/heimdall
wget https://snapshots.girnaartech.com/polygon/amoy-testnet/heimdall-amoy-testnet-files.txt
Take a backup of existing data
cp -frvp data <destination-backup-Directory>
Remove data directory from /var/lib/heimdall
rm -r ./data
Open tmux or use screen/nohup to keep downloading after you close your connection.
Download the files using aria2c. This will download up to 12 files at a time (-j 12) and will use up to 12 connections to the server (-x 12).
sudo aria2c -j 12 -x 12 --console-log-level=warn --auto-file-renaming=false --summary-interval=3600 -c -i ./heimdall-amoy-testnet-files.txt
OR you can use wget.
Create a timestamp with the current date and Download the files using wget:
TIMESTAMP=$(date +"%Y-%m-%d"); wget -q --show-progress -m -r -nH --cut-dirs=4 --no-parent --reject="index.html*" https://snapshots.girnaartech.com/polygon/amoy-testnet/heimdall/${TIMESTAMP}-heimdall-amoy-testnet/
This will download files with current user ownership. We need to change it to bor: nogroup .
sudo chown -R heimdall:nogroup /var/lib/heimdall
That's it! Start Heimdall and check the logs.
Last updated