↗ī¸Migrating the node to a new server

The Q.One - Node Quickstart Menu has an option to backup your node to StorJ and another one to restore it. Using those options you could also easily migrate the node to another machine. If you did not backed up th enode on Storj, then follow the guides below.

You have access to the source and target servers and your .config folder is on the source server

This guide will only work if you use username and password to access your target server (which is not the best for security). If you use an SSH key, you will need to follow a more advanced method. Or you can simply setup an SSH key AFTER you have migrated the files to the target server.

  • Use the auto-installer script in this guide to install the node on the new server and as soon as the first node log entries appears, stop the service. This step is clearly optional if you have already installed the node.

  • Remove the whole node/.config folder from the new server (this will delete your new server keys!).

rm -r ~/ceremonyclient/node/.config
  • Grab your new server IP and password.

  • Login to the old server, stop the node and run the below command. This will copy the entire node/.config folder from the old to the new server. Change <NEW_SERVER_IP> with your new server IP and enter the new server password when requested.

scp -r ~/ceremonyclient/node/.config root@<NEW_SERVER_IP>:/root/ceremonyclient/node/

Moving files like this via a password connection poses a security risk. It's better to setup SSH keys between your servers instead.

You only have access to the target server and your .config folder is on your local PC
  • Use the auto-installer script in this guide to install the node on the new server and as soon as the first node log entries appears, stop the service. This step is clearly optional if you have already installed the node.

  • Remove the whole node/.config folder from the new server (this will delete your new server keys!).

rm -r ~/ceremonyclient/node/.config
  • Upload your local .config folder to /ceremonyclient/node/.config

  • Restart the node

Complete manual process

This is the simplest migration process if you don't want to use the node auto-installer. But you will have to create the node service manually.

Login to your target server

Upload your .config folder to ~/backup/

Clone the repo

git clone https://github.com/QuilibriumNetwork/ceremonyclient.git 

Go to the node folder

cd ceremonyclient/node

Copy your .config folder to the node folder

cp -r ~/backup/.config  /.config

Start the node


Last updated