TheDiscordian / ipfs-sync

A simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys.
BSD 3-Clause "New" or "Revised" License
95 stars 14 forks source link

Read-only sync (pin IPNS address) #33

Open TheDiscordian opened 3 years ago

TheDiscordian commented 3 years ago

Currently we effectively have write-only sync, we'll write anything from the filesystem, and sync that to IPFS. A read-only sync could be cool too, where we take an IPNS address, keep the IPFS CID it points to pinned, and map it to MFS using a supplied name.

TheDiscordian commented 3 years ago

Make it so the user can select what files/subdirectories they sync. For example, ["/"] would sync everything, but ["/subdir", "/icon.png"], would sync a subdirectory and a file of the IPNS addr.