Skip to content

Instantly share code, notes, and snippets.

@iammelea
Last active July 21, 2018 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iammelea/33780a608e905f2c7ca9876c06d5a987 to your computer and use it in GitHub Desktop.
Save iammelea/33780a608e905f2c7ca9876c06d5a987 to your computer and use it in GitHub Desktop.
Polkadot Backup #798,671
#Install Polkadot
curl https://sh.rustup.rs -sSf | sh
sudo apt install make clang pkg-config libssl-dev
#Then, install Polkadot PoC-2:
cargo install --git https://github.com/paritytech/polkadot.git --branch v0.2 polkadot
#Then start Polkadot for create the folders.
polkadot --telemetry --name '🐞 your own name here 🐞'
#If you want to sync from the 0 block, no need do any more from this guide., You are done. and have your node running. Congratulations, go to Riot chat Polkadot and claim some TestDots.
#If you want to sync from block 798,671 continue this guide.
#If Polkadot start ok, STOP (CRTL +C)
#Open dir for Data base
cd .local/share/Polkadot/chains/krummelanke/
#Delete the actual DB
sudo rm -r db/*
cd
#Download the data base to #798,671 Blocks
wget -c 'https://storage.googleapis.com/polkadot/db.tar.gz' -O db.tar.gz
#Descompress
tar -xzf db.tar.gz
#Copy to the right folder
cp -r db/* .local/share/Polkadot/chains/krummelanke/db
#Delete useless files.
sudo rm -rf db
rm db.tar.gz
#Start Polkadot with the new data base.
polkadot --telemetry --name '🐞 your own name here 🐞'
#After this, your Polkadot POC-2 last block have to be 798,671.
#Enjoy Polkadot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment