From owner-freebsd-questions@freebsd.org Sun Oct 4 22:03:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8692D435424 for ; Sun, 4 Oct 2020 22:03:31 +0000 (UTC) (envelope-from carlj@peak.org) Received: from smtp.email-protect.gosecure.net (smtp.email-protect.gosecure.net [208.80.203.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.email-protect.gosecure.net", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4Hmf5Tzbz4Kcv for ; Sun, 4 Oct 2020 22:03:30 +0000 (UTC) (envelope-from carlj@peak.org) Received: from envoy14.neonova.net ([137.118.58.100]) by smtp.email-protect.gosecure.net ({76bef8a0-a207-11ea-87dc-c390ebe1bd4b}) via TCP (outbound) with ESMTP id 20201004220322977_00001144 for ; Sun, 04 Oct 2020 15:03:22 -0700 X-RC-FROM: X-RC-RCPT: Received: from elm.localnet (unknown [199.58.99.76]) (Authenticated sender: carlj@peak.org) by envoy14.neonova.net (Postfix) with ESMTPA id 4C4HmR1v7Yz9tKY for ; Sun, 4 Oct 2020 18:03:18 -0400 (EDT) Received: from localhost.localnet ([127.0.0.1] helo=elm.localnet) by elm.localnet with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1kPC69-000NYm-Q3 for freebsd-questions@freebsd.org; Sun, 04 Oct 2020 15:03:17 -0700 Received: (from carlj@localhost) by elm.localnet (8.15.2/8.15.2/Submit) id 094M3GIW090567; Sun, 4 Oct 2020 15:03:16 -0700 (PDT) (envelope-from carlj) From: Carl Johnson To: freebsd-questions@freebsd.org Subject: Re: Borg Backup in a Jail? References: <20201004193720.GA53167@mithril> Date: Sun, 04 Oct 2020 15:03:16 -0700 In-Reply-To: <20201004193720.GA53167@mithril> (Jacques Foucry's message of "Sun, 4 Oct 2020 21:37:20 +0200") Message-ID: <868scl4pjv.fsf@elm.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MAG-OUTBOUND: greymail.email-protect.gosecure.net@137.118.58.100/32 X-Rspamd-Queue-Id: 4C4Hmf5Tzbz4Kcv X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 208.80.203.3 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-2.69 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[208.80.203.3:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.80.200.0/21]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.02)[-1.018]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; NEURAL_HAM_SHORT(-0.88)[-0.875]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14618, ipnet:208.80.202.0/23, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2020 22:03:31 -0000 Jacques Foucry writes: > Hello colleagues, > > Did somebody sucessfully install and run `borg backup` int=E3=81=BD a jai= l? > > My jail definition looks like: > > ``` > backup{ > host.hostname=3D"backup.FQN"; > path=3D"/jails/backup"; > ip4.addr=3D"lo1|192.168.12.29/24"; > ip4.addr+=3D"lo0|127.0.1.29/32"; > ip6.addr=3D"em0| enforce_statfs =3D 1; > allow.mount=3D1; > allow.mount.fusefs=3D1; > persist=3Dtrue; > } > ``` > 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. --=20 Carl Johnson carlj@peak.org