Install Avail Mainnet Snapshots

<aside> 💡 Work in progress, copy of Turing Snapshot page

</aside>

Overview

The Instruction below will help you install and restore your avail testnet node to latest block height with help of snapshots.

Basic Requeirements

Installation

 sudo apt update
 sudo apt install lz4 -y

Warning

Please ensure you select the instructions for the correct node type (archive, full, or pruned) and download the relevant snapshot for your node type. Using the wrong snapshot may result in data corruption or unexpected behavior.

NOTE : Use Screen Or Tmux For Non Disruption of Snapshot Installation

Replace <datadir> with your respective data path for avail-node data

Full Snapshot Installation

 rm -rf <datadir>/chains/avail_turing_network/paritydb/full

 curl -o - -L <https://snapshots.vaultstaking.com/avail/turing-testnet/pruned/avail-turing-full-latest.tar.lz4> | lz4 -c -d - | tar -x -C <datadir>/chains/avail_turing_network/paritydb/

Pruned Snapshot Installation

 rm -rf <datadir>/chains/avail_turing_network/paritydb/full

 curl -o - -L <https://snapshots.vaultstaking.com/avail/turing-testnet/pruned/avail-turing-pruned-latest.tar.lz4> | lz4 -c -d - | tar -x -C <datadir>/chains/avail_turing_network/paritydb/

Archive Snapshot Installation

 rm -rf <datadir>/chains/avail_turing_network/paritydb/full

 curl -o - -L <https://snapshots.vaultstaking.com/avail/turing-testnet/pruned/avail-turing-archive-latest.tar.lz4> | lz4 -c -d - | tar -x -C <datadir>/chains/avail_turing_network/paritydb/

After Download and Installation is finished restart the avail service.