Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 2.01 KB

challenge_013.md

File metadata and controls

69 lines (44 loc) · 2.01 KB

Backup node

Preparing new host

It's great task because I lost lots of chunks and missed too much epochs on some technical problems with network and also I my choise of Contabo VPS was a mistake. I had to move to another service. For prepairing I have completed next steps:

  1. Challenge 001 - Deployment NEAR CLI
  2. Challenge 002 - Deployment a node
  3. Challenge 002 - Downloading a snapshot
  4. Challenge 002 - Setting neard as system service

Then I waited downloading previous blocks data and I have used scp util to transmit data over SSH connection between hosts.

Keys transmitting

scp /home/timur/.near/validator_key.json  [email protected]:/home/timur/.near/

scp /home/timur/.near/node_key.json [email protected]:/home/timur/.near/

scp /home/timur/.near/config.json  [email protected]:/home/timur/.near/

scp backup

Compare it and see that they are equal 😎

cat validator_key.json | jq | grep public_key

scp backup

Update IP adress in config.json

nano config.json

scp backup

Important ❗ Remove or chande name for files validator_key.json and node_key.json on old host

mv validator_key.json _validator_key.json

mv node_key.json _node_key.json

ls
> config.json  data  genesis.json  _node_key.json  _validator_key.json

Important ❗ First You must stop neard daemon on old host then you can restart your daemon on new host with new keys

  1. Stop daemon neard on old host
sudo systemctl stop neard
  1. Restart on new host
sudo systemctl restart neard
⏮ Challenge 011 Challenge 014 ⏭