Borg Backup in a Jail?

Carl Johnson carlj at peak.org
Sun Oct 4 22:03:31 UTC 2020


Jacques Foucry <jacques+freebsd at foucry.net> writes:

> Hello colleagues,
>
> Did somebody sucessfully install and run `borg backup` intぽ a jail?
>
> My jail definition looks like:
>
> ```
> backup{
>    host.hostname="backup.FQN";
>    path="/jails/backup";
>    ip4.addr="lo1|192.168.12.29/24";
>    ip4.addr+="lo0|127.0.1.29/32";
>    ip6.addr="em0|<IPv6::29/64";
>    enforce_statfs = 1;
>    allow.mount=1;
>    allow.mount.fusefs=1;
>    persist=true;
> }
> ```
> I runi on the host and the jail:
>
> `FreeBSD 12.1-RELEASE-p6 amd64`
>
-snip-
>
> But inside the jail I cannot load fusefs kernel module:
>
> ```
> backup# kldload fuse
> kldload: can't load fuse: Operation not permitted
> ```
>
> And BorgBackup need it. :-(
>
> Is there something I miss? Something wrong in my configuration?
>
> Thnaks in advane for your advices,

Have you tried doing the kldload before starting the jail?  If that
works, then you can load it at boot in loader.conf, or rc.conf with
kld_load.

-- 
Carl Johnson		carlj at peak.org



More information about the freebsd-questions mailing list