Step 3: Migrate data to NES

Steps to be migrate data from OLS to NES

Here, we will be migrating all the data from OLD to NES. Steps are as below:

  1. ssh into the NES server using below command. Replace <IP-ADDRESS-OF-NES> with ip address of NES server. It will ask for password to ssh so, you need to input NES password.

    ssh -o StrictHostKeyChecking=no root@<IP-ADDRESS-OF-NES>
  2. Execute below command. It will migrated the data from OLS to NES. Replace <IP-ADDRESS-OF-OLS> with ip address of OLS server. It will ask for password to ssh so, you need to input NES password.

    rsync -avz root@<IP-ADDRESS-OF-OLS>:/var/0chain /var/
  3. It will take same time to migrate the data. Once it is completed execute the below command:

    sudo rm -rf /var/0chain/grafana-portainer/loki/chunks

Last updated