# Snapshot

## Snapshot

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

**Chain ID**: elys-1 | **Latest Version Tag**: v6.8.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/elys/snapshot/snapshot\\_latest.tar.lz4>

### Instructions

#### Stop the service and reset the data

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

#### Download latest snapshot

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

## Add seeds

```bash
sed -i -e "s|^seeds *=.*|seeds = \"b42c60adafb47b19f0b36c58985364a897db6b85@65.109.26.242:22056\"|" $HOME/.elys/config/config.toml
```

#### Restart the service and check the log

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