SNAPSHOTS
The provided snapshots serve the purpose of enabling node providers to synchronize their nodes from a particular block captured during the snapshot. It's important to note that we are providing 3 different types of snapshots, namely pruned, full and archival.
SOFTWARE NEEDED
You need to have lz4 installed in order to extract the snapshot.
sudo apt update
sudo apt install snapd -y
sudo snap install lz4
DOWNLOAD THE REQUIRED SNAPSHOT
Retrieve the required snapshot and unzip the file into your designated data location. The goal is to eliminate the existing "paritydb" folder, housing the ParityDb database, and substitute it with the updated snapshot ParityDb database. Choose which snapshot you require then stop your Avail node before executing the below commands.
NB: Take note that you will only use the relevant commands below for the snapshot you require. For example, if you require a full snapshot, only use the commands from the full snapshot section.
rm -r <your data directory>/chains/avail_turing_testnet/paritydb
curl -o - -L http://snapshots.staking4all.org/testnet-snapshots/avail/latest/prune-avail.tar.lz4 | lz4 -c -d - | tar -x -C <your data directory>/chains/avail_turing_testnet/
Pruned snapshot:
rm -r <your data directory>/chains/avail_turing_testnet/paritydb
curl -o - -L http://snapshots.staking4all.org/testnet-snapshots/avail/latest/full-avail.tar.lz4 | lz4 -c -d - | tar -x -C <your data directory>/chains/avail_turing_testnet/
Full snapshot:
rm -r <your data directory>/chains/avail_turing_testnet/paritydb
curl -o - -L http://snapshots.staking4all.org/testnet-snapshots/avail/latest/archive-avail.tar.lz4 | lz4 -c -d - | tar -x -C <your data directory>/chains/avail_turing_testnet/
Archival snapshot:
If you've positioned the snapshot in the appropriate directory utilized by your node, upon starting the node, it is expected to synchronize starting from the block height captured in the snapshot.