> For the complete documentation index, see [llms.txt](https://documentation.script.tv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.script.tv/nodes/validators/steps-to-migrate-lightning-validator.md).

# Steps To Migrate Lightning/Validator

{% hint style="info" %}
\*Note - New server must have all pre-requisites installed and directory to be created in a way as suggested in doc. Also go env must be configured.
{% endhint %}

#### 1. Login and switch to the directory

* `cd /usr/local/go/src/github.com/`

\*Here, You will get to see the directory on the name of scripttoken.

#### 2. Create .zip or .tar file of scripttoken

#### 3. Download the zip file from previous server and upload or move it to new server.

#### 4. Unzip the folder but make sure directory architecture will be same as previous one or suggested according to the document  provided.

* `i.e, cd /usr/local/go/src/github.com/`
* Move zip or tar file to this directory and unzip here.

#### 5. Compilation of the code

* `cd /usr/local/go/src/github.com/scripttoken/script`&#x20;
* `make install`

#### 6. Run the code

* Run blockchain node in background process whether it is in tmux, nohup, sceen, pm2 or other.
* `cd /usr/local/go/src/github.com/scripttoken/script`
* `Run, /usr/local/go/bin/script start --config=../scriptnet/node`
* Enter the password and start the node.
