What problem does it solve?
Duplicating an Erigon node datadir is risky and slow: datadirs can be hundreds of gigabytes, copies can fail due to insufficient disk space, and naive copying wastes storage when the filesystem supports copy-on-write. This Skill provides a safe, validated procedure for cloning Erigon datadirs.
Core Features & Use Cases
- Precondition Validation: Verifies the source is a valid Erigon datadir (nodekey, snapshots/, chaindata/), the destination does not exist, and the destination parent is writable before copying.
- APFS Copy-on-Write Cloning: Detects APFS mounts and uses
cp -ac for near-instant clones that consume no extra disk space, then removes chaindata from the clone.
- Full-Copy Fallback with Space Checks: On non-APFS filesystems, compares available disk space against source size and aborts before starting a doomed copy.
- Use Case: You want to spin up a second Erigon node or test a risky operation on a copy of your node data. The Skill clones your existing datadir safely, choosing the fastest method for your filesystem.
Quick Start
Duplicate my Erigon datadir from /data/erigon to /backup/erigon-copy using the appropriate copy method for my filesystem.