Skip to content

Commit

Permalink
add openbitlab snapshots (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: RedWest <[email protected]>
  • Loading branch information
openbitlab2 and redwest88 authored Nov 18, 2024
1 parent 839bccd commit c61f441
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions docs/story-protocol/sync/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ sudo systemctl start story.service
sudo systemctl start geth.service`
},
{
name: "OranG3cluB: achive snapshots, updated every 3 hours",
name: "OranG3cluB: archive snapshots, updated every 3 hours",
text:
`# Install required dependencies:
sudo apt install curl tmux jq lz4 unzip -y
Expand All @@ -408,6 +408,46 @@ mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/p
# Restart the services:
sudo systemctl start story.service
sudo systemctl start geth.service`
},
{
name: "openbitlab: pruned snapshots, updated every 24 hours",
text:
`# Install required dependencies:
sudo apt install lz4 -y
# Stop the services:
sudo systemctl stop story.service
sudo systemctl stop geth.service
# Backup validator state and reset data:
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
# Download the latest snapshot and recover validator state:
curl -L https://story-testnet-snapshot.openbitlab.com/geth_pruned_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/geth
curl -L https://story-testnet-snapshot.openbitlab.com/story_pruned_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/story
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
# Restart the services:
sudo systemctl start story.service
sudo systemctl start geth.service`
},
{
name: "openbitlab: archive snapshots, updated every 24 hours",
text:
`# Install required dependencies:
sudo apt install lz4 -y
# Stop the services:
sudo systemctl stop story.service
sudo systemctl stop geth.service
# Backup validator state and reset data:
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
# Download the latest snapshot and recover validator state:
curl -L https://story-testnet-snapshot.openbitlab.com/geth_archive_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/geth
curl -L https://story-testnet-snapshot.openbitlab.com/story_archive_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/story
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
# Restart the services:
sudo systemctl start story.service
sudo systemctl start geth.service`
},
{
name: "shachopra: pruned snapshots, updated every 12 hours",
Expand Down Expand Up @@ -439,7 +479,7 @@ sudo rm geth_story.lz4\n
sudo cp $HOME/.story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json\n
# Restart Story & Story-Geth Node
sudo systemctl start story
sudo systemctl start story-geth`
sudo systemctl start story-geth`
},
];

Expand Down

0 comments on commit c61f441

Please sign in to comment.