# Update 0G Storage KV

Stop service && backup config.toml

```
sudo systemctl stop zgs-kv && cp $HOME/0g-storage-kv/run/config.toml $HOME/config.toml.backup && rm -r $HOME/0g-storage-kv
```

Update

```
git clone -b v1.2.0 https://github.com/0glabs/0g-storage-kv.git
cd $HOME/0g-storage-kv
git stash
git fetch --all --tags
git checkout 97ba360 
git submodule update --init
cargo build --release
```

Setup config.toml

```
mv $HOME/config.toml.backup $HOME/0g-storage-kv/run/config.toml
```

ZGS KV Service Restart

```
sudo systemctl restart zgs-kv
```

Log Check

```
sudo journalctl -u zgs-kv.service -f
```


---

# 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://services.dongqn.com/0g-storage-kv/update-0g-storage-kv.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.
