From owner-freebsd-fs@freebsd.org Fri Aug 10 14:48:06 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEDFE106CE9D for ; Fri, 10 Aug 2018 14:48:05 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8EC808DD28 for ; Fri, 10 Aug 2018 14:48:05 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1fo8hw-0002RW-82; Fri, 10 Aug 2018 15:48:04 +0100 Date: Fri, 10 Aug 2018 15:48:04 +0100 From: Gary Palmer To: Dmitry Morozovsky Cc: freebsd-fs@freebsd.org Subject: Re: ZFS backup Q: send/recv and mountpoint property Message-ID: <20180810144804.GA83321@in-addr.com> References: <20180804220727.GA83288@in-addr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 14:48:06 -0000 On Fri, Aug 10, 2018 at 05:42:46PM +0300, Dmitry Morozovsky wrote: > On Sat, 4 Aug 2018, Gary Palmer wrote: > > > On my backup server I have two pools, zfsroot and data. I think I set > > things up, and then exported data so that it's not auto-imported at boot. > > I then put this in /etc/rc.local > > > > zpool import -N -R /backups data > > > > It lets the pool import filesystems with paths like / or /home > > without over-writing the paths on the local system. > > that would fit for "normal" case, but does not survive sudden reboot ;-) > > I'm switching to zxfer for now; not ideal, but fair and usable enough Hi, I haven't tested reboot during sync, but I'm not sure why a sudden reboot would cause issues - the -R should move mounts outside critical areas. Could you elaborate please? Thanks, Gary