Backing up & Restoring a Node
Last updated
Last updated
To move a node to another server, one needs to back it up and restore it on the new server. To do so, follow the instructions below.
To back up your node, run the following command on your server:
This command creates a file named backup.json
. You can see the contents of this file using:
The result will look like the following:
NB: These contents should be copied and kept somewhere safe.
To restore the node, follow the "" instructions. After running the new node, instead of following "" section, and then run the following command:
Having run the above command, you should receive this message:
Now run this command to restart the container:
If the restoration process is successful, querying the status of the node from the following link will return the address
and peerId
of the backed up node.