borgbackup / borgbackup/borg

Borg mount options with autofs?

Open
#4,880 3 comments 0 reactions 0 assignees View on GitHub
cmd: mount enhancement
Dominant language
Python
Stars
13.7k
Forks
875
Avg merge
11h 15m
Merged PRs (30d)
192

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.