Backing Up and Migrating Nodes
Transfer your node to a new server, retaining the node identity, stats, and grandfathered status
Sometimes, you may want to migrate your node to a new computer or VPS, while maintaining the current node's identity, grandfathered status, and node stats.
In order to move your Presearch node to a new server, you need to back up the security keys of the node while itβs still running, copy them to the new server, stop the old node, run the Presearch Node Restore command on the new server, then start the node up on the new server.
For the steps below, old-server
is the old server your node was running on, and new-server
is the new server you are moving the node onto. Text surrounded by {}
should be replaced with the proper actual value.
Login to the
old-server
via SSH (using the Terminal on macOS/Linux or PuTTY if you are on Windows) where your node is currently running. Make a copy of the security keysNow stop the node running on
old-server
by runningDisconnect from
old-server
so you are back at your local command line.Download the keys backup you just made from your
old-server
to your local computer:Upload the node security keys to
new-server
from your local computer:Now login to
new-server
:Run
ls
to confirm that you see the folder (presearch-node-keys
) you uploaded in step 3Let's now run the Node restore command:
You'll see
docker
launch the restore code, which takes about 10 seconds to complete.Once that's done, you can launch the node similar to how you would a new node:
You should see the message
info: Node is listening for searches...
if all was started properly.Refresh your dashboard, and you should see that your node is back online.
You can now remove the uploaded security key files from new-server:
We recommend making a backup of all of your nodes' security keys.
Adapted from https://nabeards.com/posts/moving-a-presearch-node-to-another-server/, which also provides direction on managing and backing up multiple nodes at once.
Last updated