This is asked many times on Telegram and I think it would be helpful to share the steps required.
Migrate an existing node to a new server
You want to migrate an existing node to a new server.
Do these steps on the old server:
- Stop the node.
- Make a backup of the
.config/
directory.
Do these steps on the new server:
- Restore your backup of the
.config/
directory. - Start node.
Configure a new node
You want to start a new node on a new server and make a config change such as enabling gRPC.
- On new server, run
/path/to/node -peer-id
. This will generate the.config/config.yml
file. - Make any changes to
.config/config.yml
file. - Start the node.