kubo
kubo copied to clipboard
`ipfs dag export --ignore-missing-blocks`
Checklist
- [x] My issue is specific & actionable.
- [x] I am not suggesting a protocol enhancement.
- [x] I have searched on the issue tracker for my issue.
Description
This is a feature request extracted from https://github.com/ipfs/ipfs-webui/issues/2380#issuecomment-2942278113
WebUI users would like to have an ability to export/import MFS as a potentially partial CAR (without prefetching non-local blocks)
General idea
- Kubo: add
--ignore-missing-blocksto bothdag import|export- this would allow for
ipfs dag export --ignore-missing-blocks --offline $(ipfs files stat / | head -1)that would effectively do the same "local-only" DAG walk asReprovider.Strategy=mfsand output blocks to a CAR -
ipfs dag importwould error if both--pin-rootsand--ignore-missing-blocksare passed
- this would allow for
- Webui (tracked in https://github.com/ipfs/ipfs-webui/issues/2380, here only for context)
-
Files → Import → From CARin WebUI would have a checkboxes for controlling--pin-rootsand--skip-missing-blocksbefore proceeding with import. -
Files → Export CARin WebUI would show modal which would allow user to do export viaipfs.dag.exportand uncheck--ignore-missing-blocks--offline.
-