skills/smithery.ai/erigon-datadir

erigon-datadir

Installation
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)
  3. Destination does not exist: test ! -e <dst> — abort if it already exists
  4. Destination parent is writable: test -w "$(dirname <dst>)" — abort if not
  5. Report source size: run du -sh <src> and always tell the user the size before proceeding
  6. 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.
Installs
1
First Seen
Apr 4, 2026
erigon-datadir from smithery.ai