🔁 Restore node

1️⃣Preparation for the transfer of node

To begin with, you need to install a node on a new server, following all the necessary instructions in the section ⚙️ Installation , after successful installation, use the following recovery steps.

2️⃣Restore a node from back-ups

2.1 Transfer the backup.json file to your server:

Copy the contents of your backup file, open the newly created file on your server with the following command, and paste the contents.

nano backup.json

Save and close it by pressing ctrl+x and then press y to confirm saving the changes.

2.2 Read the contents of the backup file

Run this command:

docker exec -it muon-node ./node_modules/.bin/ts-node ./src/cmd/index.ts keys restore "$(cat backup.json)"

Having run the above command, you should receive this message:

.env created successfully.

2.3 Restart the container

sudo docker restart muon-node

If the restoration process is successful, use the command that should return you the address and peerID

curl http://localhost:8012/status | jq

Last updated