This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
Filesystem backed ipfs-watch #434
Labels
kind/discussion
Topical discussion; usually not changes to codebase
Proposal: a tool for watching a folder and making it available over over IPFS (a) without having to re-add everything any time a file changes and (b) without having to duplicate the file data on disk.
Users currently use the "filestore" feature to add files to go-ipfs without storing the data on disk twice. Unfortunately, the filestore doesn't integrate very well with go-ipfs as-is because go-ipfs expects pinned data to remain available, while files on disk can change. Furthermore, re-syncing a large directory into go-ipfs can be quite expensive.
IMO, the best solution would be to not use the go-ipfs daemon, but instead is to implement an
ipfs-watch
tool. It would:The database schema would be:
Events:
DELETE FROM blocks where filename=filename
(just in case)DELETE FROM blocks where filename=filename
Prior art and related:
The text was updated successfully, but these errors were encountered: