Latest
|
Ledger Version
|
Size
|
Timestamp
|
Download
|
---|---|---|---|---|
2078237275 | 496 GB | 1 hour ago | aptos_2078237275.tar.lz4 | |
2073712777 | 479 GB | 1 day ago | aptos_2073712777.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. The snapshot is not pruned. We might apply some pruning strategy in the future to reduce the disk requirement.
Install lz4 if needed
sudo apt update
sudo apt install snapd -y
sudo snap install lz4
Download the snapshot
wget -O aptos_2078237275.tar.lz4 https://snapshots.polkachu.com/snapshots/aptos/aptos_2078237275.tar.lz4 --inet4-only
Stop your node
sudo service aptos stop
Reset your node. We assume that all your Aptos config and data files are
located in a folder called $HOME/mainnet
. If
you have a
different folder, please adjust the script accordingly.
rm -rf $HOME/mainnet/data
Decompress the snapshot to your database location
lz4 -c -d aptos_2078237275.tar.lz4 | tar -x -C $HOME/mainnet
If everything is good, now restart your node
sudo service aptos start
Remove downloaded snapshot to free up space
rm -v aptos_2078237275.tar.lz4
Make sure that your node is running
sudo service aptos status
sudo journalctl -u aptos -f
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/aptos/aptos_2078237275.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/mainnet