Skip to content

Snapshot

While we provide snapshots for those who need them, they are not the primary method and are used at your own risk. For better security and reliability, syncing from scratch is always the best choice. Use snapshots only if you fully understand the risks.

Snapshot Status

Status: 🔴 Not available

The snapshot is now available for download. Using the snapshot will significantly reduce sync time compared to syncing from genesis.

Snapshots are updated daily at 00:00 UTC.

One-click Snapshot Installer

bash
bash <(wget -qO- https://raw.githubusercontent.com/astrostake/0G-Labs-script/refs/heads/main/storage-node/galileo/0g_storage_node_snapshot_v3.sh)

Manual Install Snapshot

  1. Install tools
bash
cd && sudo apt-get install wget lz4 aria2 pv -y
  1. Download snapshot

Snapshot full db

Blocks: 1090927 Size: 71G

bash
wget https://vault.astrostake.xyz/0g-labs/snapshot_storage_node_astrostake.tar.lz4
  1. Stop service
bash
sudo systemctl stop zgs.service
  1. Extract

Snapshot full db extract

bash
rm -rf $HOME/0g-storage-node/run/db
lz4 -c -d snapshot_storage_node_astrostake.tar.lz4 | pv | tar -x -C $HOME/0g-storage-node/run
  1. Restart node
bash
sudo systemctl restart zgs && sudo systemctl status zgs
  1. Remove downloaded file (Optional)

After successfully installing, you can delete the downloaded file to free up storage space.

bash
rm -rf snapshot_storage_node_astrostake.tar.lz4

Useful Commands

Check Full Logs

bash
tail -f ~/0g-storage-node/run/log/zgs.log.$(TZ=UTC date +%Y-%m-%d)

Check Blocks and Peers

bash
source <(curl -s https://raw.githubusercontent.com/astrostake/0G-Labs-script/refs/heads/main/storage-node/check_block.sh)

Change RPC

bash
bash <(wget -qO- https://raw.githubusercontent.com/astrostake/0G-Labs-script/refs/heads/main/storage-node/change_storage_rpc.sh)

Remove data_db

Reset Database State

If you haven't received the miner reward, try deleting the data_db folder and restart storage node.

bash
systemctl stop zgs
bash
rm -rf $HOME/0g-storage-node/run/db/data_db
bash
systemctl start zgs