# q-blockchain

## prepare move to another VPS

```
apt install docker-compose -y
```

```
sudo apt-get update && sudo apt install jq && sudo apt install apt-transport-https ca-certificates curl software-properties-common -y && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin && sudo apt-get install docker-compose-plugin -y
```

## Download and Installation of Q Blockchain Files

```
git clone https://gitlab.com/q-dev/testnet-public-tools
cd testnet-public-tools
rm -fr testnet-validator
```

## upload folder testnet validator ke VPS baru

## edit file .env rubah ke ip vps baru

```
cd testnet-validator
nano .env
```

## download snapshot

```
rm -rf /var/lib/docker/volumes/testnet-validator_testnet-validator-node-data/_data/geth/chaindata/
mkdir -p /var/lib/docker/volumes/testnet-validator_testnet-validator-node-data/_data/geth/chaindata/
cd /var/lib/docker/volumes/testnet-validator_testnet-validator-node-data/_data/geth/chaindata//
wget -O - https://snapshots.stakecraft.com/q-testnet_2023-02-26.tar | tar xf -
```

## stop node di vps lama

```
cd testnet-public-tools/testnet-validator/
docker-compose down -v
```

## jalankan node di vps baru

```
cd ~/testnet-public-tools/testnet-validator
docker-compose up -d
docker-compose logs -f --tail "100"
```


---

# 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://docs.konsortech.xyz/node/testnet/q-blockchain.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.
