Latest
|
Block Height
|
Size
|
Snapshot Timestamp
|
Compression
|
Database
|
Prune Mode
|
Location
|
Download
|
---|---|---|---|---|---|---|---|---|
21553047 | 123 GB | 3 months ago | lz4 | RocksDB | Pruned | EU | polkadot_21553047.tar.lz4 |
We take one node snapshot every day. We then delete all the previous snapshots to free up the space on the file server.
Install lz4 if needed
sudo apt update
sudo apt install snapd -y
sudo snap install lz4
Download the snapshot
wget -O polkadot_21553047.tar.lz4 https://snapshots.polkachu.com/snapshots/polkadot/polkadot_21553047.tar.lz4 --inet4-only
Decompress the snapshot to your database location. You database location
will be something to the effect of
/home/polkadot/.local/share/polkadot/chains/polkadot
,
depending on your node implemention
lz4 -c -d polkadot_21553047.tar.lz4 | tar -x -C YOUR_DATABASE_LOCATION
Remove downloaded snapshot to free up space
rm -v polkadot_21553047.tar.lz4
ADVANCED ROUTE: The above solution requires you to download the compressed file, uncompressed it and then delete the original file. This requires extra storage space on your server. You can run the following combo command to stream the snapshot into your database location. For advanced users only:
curl -o - -L https://snapshots.polkachu.com/snapshots/polkadot/polkadot_21553047.tar.lz4 | lz4 -c -d - | tar -x -C YOUR_DATABASE_LOCATION