Skip to content

Snapshot

Story banner

Prune snapshot:  1030056          |         Archive snapshot:  1030056

  1. Install tool
    Terminal window
    sudo apt-get install wget lz4 aria2 pv -y
  2. Stop node
    Terminal window
    sudo systemctl stop story
    sudo systemctl stop story-geth
  3. Download snapshot
    • Story data:

      Terminal window
      #pruning = "default", indexer = "null", disables state snapshots, app-db-backend = "goleveldb"
      cd $HOME
      rm -f Story_snapshot.lz4
      aria2c -x 16 -s 16 -k 1M https://story.josephtran.co/Story_snapshot.lz4
    • Geth data:

      Terminal window
      cd $HOME
      rm -f Geth_snapshot.lz4
      aria2c -x 16 -s 16 -k 1M https://story.josephtran.co/Geth_snapshot.lz4
  4. Backup priv_validator_state.json
    Terminal window
    cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/priv_validator_state.json.backup
  5. Remove old data
    Terminal window
    rm -rf $HOME/.story/story/data
    rm -rf $HOME/.story/geth/odyssey/geth/chaindata
  6. Decompress snapshot
    • Story data:

      Terminal window
      sudo mkdir -p $HOME/.story/story/data
      lz4 -d -c Story_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/story/ > /dev/null
    • Geth data:

      Terminal window
      sudo mkdir -p $HOME/.story/geth/odyssey/geth/chaindata
      lz4 -d -c Geth_snapshot.lz4 | pv | sudo tar xv -C $HOME/.story/geth/odyssey/geth/ > /dev/null
  7. Move priv_validator_state.json back
    Terminal window
    cp $HOME/.story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
  8. Restart node
    Terminal window
    sudo systemctl start story
    sudo systemctl start story-geth