-
-
Notifications
You must be signed in to change notification settings - Fork 811
Description
After a few years of using a workaround method (github.com/fleetwoodmac/FUSEless-Mount-macOS), I came across a project by nohajc called anylinuxfs (https://github.com/nohajc/anylinuxfs)
the project is essentially a micro-vm running alpine that mounts a linux filesystem and exposes it to the host Mac via an NFS share. This avoids all the weird was in which FUSE-T was trying to map FUSE bindings to NFS bindings (not to mentioned that it is still closed source).
anylinuxfs is already being used by people in the community to mount local linux filesystems that had a borg repo to be able to browse their backups. The maintainer was super nice and implemented the ability to mount remote filesystems as well (NFS/SMB, see nohajc/anylinuxfs#72).
you essentially can create a dummy img with dd, throw an ext4 filesystem on it with e2fsprogs, and then define an anylinuxfs 'custom action' that mounts your share (or your local device), runs borg mount which mounts it in the linux micro-vm, and then exposes it via an NFS share. I have been able to backup using vorta, and now am able to browse my backups without using macFUSE or FUSE-T. The custom action supports cleanup commands so that it can cleanly unmount your borg mount and your remote FS (or your local one).
All this runs in userspace so no need for kexts, and it's open source unlike fuse-t. Would it maybe be possible/of interest to make borg mount on macOS ARM devices an alias to this?