# Snapshot

## Snapshot

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

**Chain ID**: juno-1 | **Latest Version Tag**: v29.0.0

{% 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/juno/snapshot/snapshot\\_latest.tar.lz4>

### Instructions

#### Stop the service and reset the data

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

#### Download latest snapshot

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

## Add seeds

```bash
sed -i -e "s|^seeds *=.*|seeds = \"62e1ef9da0ca277edfc42be048fa6ef79e1ee207@176.9.157.142:12656\"|" $HOME/.juno/config/config.toml
```

#### Restart the service and check the log

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