piedar / js-ipfs-mount

mount /ipfs /mfs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mount with a --source prefix

piedar opened this issue · comments

Once this works, I can selectively migrate directories to ipfs and/or mfs.

mount.mfs --source /usr/portage/distfiles --target /usr/portage/distfiles

# or maybe
mount.mfs --source /torrents --target /srv/deluge/torrents

# or even
mount.ipfs --source /Qm... --target /mnt/archive

This can be done already with subdir from man mount.fuse.

mount.mfs /usr/portage/distfiles -o modules=subdir,subdir=/usr/portage/distfiles

Symlinks can also do the job.

ln -s /mfs/torrents /srv/deluge/torrents-mfs

caveats

Should --source be reserved for something else? Maybe it makes more sense as the ipfs-api endpoint.