# Snapshot

## Snapshot

<figure><img src="https://raw.githubusercontent.com/StakeandRelax-Validator/documentation/main/Logos/neutron.png" alt="" width="150"><figcaption></figcaption></figure>

**Chain ID**: neutron-1 | **Latest Version Tag**: 9.1.2

{% hint style="info" %}
Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.
{% endhint %}

Snapshots are taken automatically every 24 hours

<https://snapshots.stakeandrelax.net/snapshots/neutron/snapshot/snapshot\\_latest.tar.lz4>

### Instructions

#### Stop the service and reset the data

```bash
sudo systemctl stop neutron
cp $HOME/.neutrond/data/priv_validator_state.json $HOME/.neutrond/priv_validator_state.json.backup
rm -rf $HOME/.neutrond/data
```

#### Download latest snapshot

```bash
curl -L https://snapshots.stakeandrelax.net/snapshots/neutron/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.neutrond
mv $HOME/.neutrond/priv_validator_state.json.backup $HOME/.neutrond/data/priv_validator_state.json
```

## Add seeds

```bash
sed -i -e "s|^seeds *=.*|seeds = \"{{ seed }}\"|" $HOME/.neutrond/config/config.toml
```

#### Restart the service and check the log

```bash
sudo systemctl start neutron && sudo journalctl -u neutron -f --no-hostname -o cat
```


---

# 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.stakeandrelax.net/mainnet/neutron/snapshot.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.
