CLI tooling for running Storacha backup migration work from a FOC Node.
The CLI owns the backup workflow: creating local tracking state, downloading
shard CARs, preparing piece CARs, committing pieces, and verifying on-chain
state. It also has an aggregate planner that stores aggregate roots and ordered
sub-piece members in tracking.db after the source data set is fully committed.
pnpm backup-helper --helpDirect invocation also works:
node src/index.mjs --helpSee src/README.md for the command flow and operational
notes.
- Node.js 24+
pnpmaria2conPATHfor thedownloadcommand
pnpm test
pnpm run typecheck
pnpm run biome:checkThis repository used to contain several migration support tools. The active maintenance target is now this CLI only.
scripts/prepare-cars-download/— read a migrationstate.jsonand prepare a bulk CAR download manifest foraria2.scripts/migration-repair/— repair older migration state by converting Store-flow shard entries into Pull-flow shard entries where possible.
Recommended archive tag:
git tag -a archive/pre-backup-helper 9f9818b167395da0e91ea97033d1d347ee4229bf
git push origin archive/pre-backup-helper