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 these snapshots aren't archival; instead, they encompass the latest 1000 blocks and their related data, essential for validating future blocks. This level of data is sufficient for running a validator node.
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 SNAPSHOT
Retrieve the snapshot and unzip the file into your designated data location. The goal is to eliminate the existing "db" folder, housing the RocksDb database, and substitute it with the updated snapshot's RocksDb database.
rm -r <your data directory>/chains/stafi_mainnet/db
curl -o - -L http://snapshots.staking4all.org/snapshots/stafi/latest/stafi.tar.lz4 | lz4 -c -d - | tar -x -C <your data directory>/chains/stafi_mainnet/
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.