# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.script.tv/nodes/validators/steps-to-migrate-lightning-validator.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
