Polygon
Download weekly snapshot:
LATEST HEIGHT | SIZE | CHAIN ID | PRUNING | DATE | TIME | LINK |
---|---|---|---|---|---|---|
64240815 | 5.7T | bor-mainnet | pruned | 2024-11-14 | 11:37:48 | s3://sc-snapshots/bor-mainnet_2024-11-13.tar |
21187084 | 380.1G | heimdall-mainnet | default | 2024-11-14 | 13:27:29 | s3://sc-snapshots/heimdall-mainnet_2024-11-14.tar.gz |
14398024 | 27.6G | bor-amoy | default | 2024-11-14 | 04:23:43 | s3://sc-snapshots/bor-amoy_2024-11-14.tar.gz |
5457894 | 18.3G | heimdall-amoy | default | 2024-11-14 | 03:04:41 | s3://sc-snapshots/heimdall-amoy_2024-11-14.tar.gz |
64197976 | 0 | erigon-mainnet | full | 2024-11-13 | 15:41:42 | s3://sc-snapshots/erigon-mainnet-mdbx.dat-2024-11-12 |
13252724 | 17.2G | erigon-amoy | full | 2024-11-14 | 02:02:51 | s3://sc-snapshots/erigon-amoy_2024-11-14.tar.gz |
Our tips
We are providing several commands in order to download and extract snapshots to its corresponding place. Don't hesitate to adjust the commands according to your setup.
s5cmd Installation
- Install s5cmd client:
wget https://github.com/peak/s5cmd/releases/download/v2.2.2/s5cmd_2.2.2_Linux-64bit.tar.gz
tar -xf s5cmd_2.2.2_Linux-64bit.tar.gz
rm s5cmd_2.2.2_Linux-64bit.tar.gz
- Configure s3 bucket access:
cat <<EOF > s5cmd-r2.cfg
[default]
aws_access_key_id = 6b4b819da0d66d9ddf7bb37520c46a16
aws_secret_access_key = ab2dc9b991f4b5055787e8ba9c09c8b4ceb3e183561fbfa7f6475f23fa474766
aws_region = auto
host_base = dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com
host_bucket = dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com
enable_multipart = True
EOF
Our tips
We have tested two ways of downloading files.
a) Download and unpack the files to the destination folder directly. You will have unpacked files in the target directory, but only with single download session. b) Download the archive in several concurent sessions. In this case you can get more speed(depends from your uplink), but need double space.
Bor Instructions
- Stop bor service
sudo systemctl stop bor.service
- Delete data directory:
sudo rm -rf /var/lib/bor/chaindata
3.a Download bor snapshot in a single session and unpack to target folder:
./s5cmd --credentials-file ~/s5cmd-r2.cfg --endpoint-url https://dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com cat --raw s3://sc-snapshots/bor-mainnet_2024-09-17.tar | tar -xvf - -C /var/lib/bor/chaindata
3.b Download bor snapshot in multisession mode:
./s5cmd --credentials-file ~/s5cmd-r2.cfg --endpoint-url https://dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com cp --show-progress --concurrency 50 s3://sc-snapshots/bor-mainnet_2024-09-17.tar /target-folder>
sudo systemctl start bor.service
sudo journalctl -u bor.service -f
Heimdall Instructions
- Stop heimdall service
sudo systemctl stop heimdalld.service
Back up your priv_validator_state.json
Please make sure you have a copy of priv_validator_state.json from data folder.
- Backup priv_validator_state.json:
cp /var/lib/heimdall/data/priv_validator_state.json $HOME/priv_validator_state.json
- Delete the data:
sudo rm -rf /var/lib/heimdall/data
- Download the snapshot archive:
./s5cmd --credentials-file ~/s5cmd-r2.cfg --endpoint-url https://dd74dc687a5ce54107082a6849814c19.r2.cloudflarestorage.com cat --raw s3://sc-snapshots/heimdall-mainnet_2024-09-10.tar.gz | tar -xzvf - -C /var/lib/heimdall/data
- Start service and check the logs:
sudo systemctl start heimdalld.service
sudo journalctl -u heimdalld.service -f