# Snapshot

Updates every 24 hours

## Stop the node

```bash
docker stop aptos-fullnode
```

## Install dependencies

```bash
sudo apt-get update
sudo apt-get install wget lz4 aria2 -y
```

## Download and extract

### Backup your ephemeral\_identity\_key

```bash
cp $HOME/mainnet/data/db/ephemeral_identity_key $HOME/ephemeral_identity_key
```

### Download snapshot

```bash
cd $HOME
rm aptos-snap.tar.lz4
aria2c -x 16 -s 16 -o aptos-snap.tar.lz4 https://aptos-snapshot.cryptomolot.com/aptos-snap.tar.lz4
```

### Extract snapshot

```bash
rm -rf $HOME/mainnet/data/db
sudo mkdir -p $HOME/mainnet/data/db
lz4 -d aptos-snap.tar.lz4 - | tar -xf - -C $HOME/mainnet/data/db/
```

## Start node

```bash
cd $HOME/mainnet
docker run -d --pull=always \
  --log-driver json-file \
  --log-opt max-size=50m \
  --log-opt max-file=3 \
  --rm -p 8080:8080 \
  -p 9101:9101 -p 6180:6180 \
  -v $(pwd):/opt/aptos/etc -v $(pwd)/data:/opt/aptos/data \
  --workdir /opt/aptos/etc \
  --name=aptos-fullnode aptoslabs/validator:mainnet aptos-node \
  -f /opt/aptos/etc/fullnode.yaml
```

### Check sync

```bash
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_state_sync_version"
```


---

# 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://cryptomolot.gitbook.io/cryptomolot-docs/mainnets/aptos/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.
