Skip to content

Borg mount options with autofs? #4880

@Hexasoft

Description

@Hexasoft

Hi,

I'm using Borg 1.1.9 on a up-to-date Debian 10 (borgbackup package from the OS).
I want borgfs being available with autofs, which works fine:
DIR -fstype=fuse.borgfs,ro :/PATH/TO/REPO
Then (in my case) using 'ls /misc/DIR' will show the Borg backup content.

But I want to use 'strip-components' option (to remove useless initial path) on this mount, but I can't set this option here. Trying:
DIR -fstype=fuse.borgfs,ro,strip-components=4 :/PATH/TO/REPO
just makes the mount fail, whereas using this same option directly works fine, i.e.:
borg mount --strip-components 4 /PATH/TO/REPO /root/mnt/

I also tried to replace the "-" with a "_" without success.

So my question/suggestion:

  • is there any way to perform this
  • and if not it seems it would be a good feature to add

Regards,
-- Y.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions