smithery.ai

erigon-datadir

Reference for manipulating Erigon datadirs. Use this when the user wants to perform operations on Erigon data directories.

First seen Apr 4, 2026

Installation

$ npx skills add https://smithery.ai

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,109 B
  • docs SUMMARY.md 144 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Erigon Datadir Operations

Duplicating a Datadir

Given a source path and destination path, follow this procedure exactly.

Precondition Checks

All checks must pass before copying. Abort on the first failure.

  1. Source exists: test -d <src> — abort if missing
  2. Source is a valid Erigon datadir: verify all three exist:

- <src>/nodekey (file) - <src>/snapshots/ (directory) - <src>/chaindata/ (directory)

  1. Destination does not exist: test ! -e <dst> — abort if it already exists
  2. Destination parent is writable: test -w "$(dirname <dst>)" — abort if not
  3. Report source size: run du -sh <src> and always tell the user the size before proceeding
  4. Detect APFS: find the mount device for the destination parent directory from mount output. If the mount entry contains apfs, use the APFS CoW procedure below; otherwise use the full-copy procedure.

APFS Procedure (copy-on-write)

Use this when the destination is on an APFS volume.

  1. Run cp -ac <src> <dst> — this creates a CoW clone that is near-instant and consumes no extra disk space.
  2. No disk space check is needed for CoW clones.
  3. After the copy completes, delete chaindata from the destination: rm -rf <dst>/chaindata

Other Filesystems Procedure (full copy)

Use this when the destination is NOT on APFS.

  1. Check disk space: run df -h "$(dirname <dst>)" and compare available space to the source size. If available space is less than source size, abort and tell the user — do not proceed.
  2. Run cp -a <src> <dst> to recursively copy the entire datadir. This is a long-running operation for large datadirs — run in background.

Post-Copy

After either procedure completes, confirm success by listing the destination contents and comparing against the source (minus chaindata/ for APFS copies).