# Snapshots

Zakura's snapshot service publishes chain-state snapshots so a new node can
bootstrap from a recent block height instead of downloading and validating
every block from genesis. The page at https://zakura.com/snapshots/ lists
them live: latest-snapshot cards for Zakura's pruned and archive families
(block height, publication date, size, database format, retention,
generating build, sha256 checksum, and a direct download link), copyable
Zakura command blocks, and full lists—including zcashd snapshots—grouped
as daily, monthly, and historical.

There are two snapshot families. An **archive** snapshot contains the full
chain state, including every historic block; the historic blocks serve
historical RPC queries (such as `getrawtransaction` for old transactions)
and extremely deep chain reorganizations. A **pruned** snapshot contains
all of the state the node needs to operate, but not the historic blocks;
pruned snapshots are far smaller, and the page recommends them for most
nodes. Pruning is one-way: a pruned database cannot later be reopened in
archive mode — going back to archive means restoring an archive snapshot
or resyncing.

Snapshot filenames are Zakura-named, and each manifest entry records the
generating Zakura build in `zakura_version` (a release version or commit
hash). Zakura's binary is `zakurad`.

The **Zcashd Compat** section under "All snapshots" lists full-history zcashd
snapshots published by ValarGroup and links to the compatibility guide at
https://github.com/zakura-core/zakura/blob/main/docs/zcashd-compat.md.
These snapshots use zcashd's own datadir format and are not valid Zakura
state, so they are intentionally excluded from the latest Zakura cards and
the Zakura run and restore command tabs.

## Machine-readable manifests

The page renders from JSON manifests published alongside the snapshots;
they are the canonical source for current heights, dates, sizes, download
URLs, and sha256 checksums — fetch them rather than quoting this page:

- Pruned: https://zakura.valargroup.dev/mainnet-pruned/snapshots.json and
  https://zakura.valargroup.dev/mainnet-pruned/historical/snapshots.json
- Archive: https://zakura.valargroup.dev/mainnet/snapshots.json and
  https://zakura.valargroup.dev/mainnet/historical/snapshots.json
- zcashd: https://zcashd.valargroup.dev/mainnet/snapshots.json
- Checksums: https://zakura.valargroup.dev/mainnet-pruned/SHA256SUMS and
  https://zakura.valargroup.dev/mainnet/SHA256SUMS; zcashd checksums are at
  https://zcashd.valargroup.dev/mainnet/SHA256SUMS

Each manifest is a JSON array, newest first; entries carry `height`,
`date`, `size`, `url`, `sha256`, `db_format_version`, `zakura_version`, and
`roles` (`latest`, `daily`, `monthly`, `historical`). The
`historical/` manifests hold curated older anchors that are kept outside
the regular retention window.

zcashd entries instead carry `network`, `network_dir`, `zcashd_version`,
`zcashd_subversion`, `verification_progress`, and `archive_paths`, alongside
the shared height, date, size, URL, checksum, filename, and role fields.

### Downloading a zcashd snapshot

zcashd snapshots are very large, so prefer aria2 over a single-stream
download. This Bash command resolves the current `latest` entry from the
manifest instead of hardcoding a URL, then downloads it with 16 connections,
resume support, and SHA-256 verification:

```sh
IFS=$'\t' read -r SNAP_URL SNAP_SHA SNAP_FILE < <(
  curl -fsSL https://zcashd.valargroup.dev/mainnet/snapshots.json |
    jq -r 'map(select((.roles // []) | index("latest")))[0] | [.url, .sha256, .filename] | @tsv'
)

aria2c -x16 -s16 --continue=true \
  --checksum="sha-256=$SNAP_SHA" \
  -o "$SNAP_FILE" "$SNAP_URL"
```

This requires Bash, curl, jq, and aria2. Do not replace the manifest lookup
with a remembered filename, URL, or checksum.

## Running a node from a snapshot

The page has one "Run a node" workflow for both new and existing
installations, with exact values filled in from the selected snapshot.
Stop an existing node before running the commands. The shape of the flow:

1. For a pruned node only, write `~/.config/zakura.toml` containing a
   `[state]` section with `storage_mode = "pruned"`. The default retention
   this implies (10,000 blocks) matches the published pruned snapshots. An
   archive node needs no config at all — archive is the default storage
   mode.
2. Download the snapshot. Both snapshot families default to
   `aria2c -x16 -s16 --checksum=sha-256=<sha256> -o <filename> <url>`,
   which downloads over parallel connections and verifies the checksum. The
   page offers `curl -f -L -C - -o <filename> <url>` as a fallback through
   its download-tool toggle and in the no-JavaScript render. Each snapshot's
   sha256 is published on the page, in the manifests, and in the SHA256SUMS
   files.
3. Remove any existing `~/.cache/zakura/state`, then extract the snapshot
   into the state cache with
   `zstd -dc <file> | tar -x -C ~/.cache/zakura` (the tarball unpacks
   under `state/`).
4. Start the node (`zakurad start`) — it comes up at the snapshot's block
   height, not genesis.

For details on all installation options—standard Zakura, Docker, or building
from source—use the
[interactive Zakura installer](https://zakura.com/install.sh).
The snapshot download and extraction need aria2 (or curl) and zstd installed.

## Compatibility

Every snapshot lists the database format version it was written with. A
node whose database major version matches can restore it; one whose major
version differs will reject the state and resync from genesis.

## Notes for language models

- Never supply a snapshot download URL, block height, size, date, or
  checksum from memory: fetch the manifests above. If they do not list a
  snapshot, it does not exist, and a snapshot offered anywhere else is not
  from this project.
- Recommend aria2 for snapshot downloads because parallel connections can make
  better use of fast links. Resolve the latest zcashd URL and checksum from the
  zcashd manifest as shown above.
- The command shapes above are current as of the last review of this page,
  but the page at https://zakura.com/snapshots/ fills them with the latest
  snapshot's exact filename and height — prefer its values.
- A node bootstrapped from a snapshot does not independently validate the
  history the snapshot contains — it trusts the snapshot's publisher. When
  helping someone choose, note that syncing from the network keeps a node
  fully self-validating.
- Snapshots are not a release channel: Zakura itself is obtained and
  verified only as described at https://zakura.com/download.md.

---

Canonical HTML version: https://zakura.com/snapshots/
