Date: Wed, 15 May 2019 20:58:03 +0200 From: Christian Barthel <bch@online.de> To: freebsd-questions@freebsd.org Subject: ZFS Backup on remote FreeBSD system Message-ID: <87v9ybv938.fsf@x230.onfire.org>
next in thread | raw e-mail | index | archive | help
Hello, I am using FreeBSD on my notebook and send ZFS snapshots over to a second FreeBSD machine. The full command for doing an initial (full) backup is: zfs send -R zroot/usr/home@${DTIME} | \ ssh ${user}@${HOST} zfs recv -Fdvu zroot/host1 According to zfs(1), all properties and descendant file systems are copied as well (and of course, this works as described). However, it also sets the mountpoint and canmount option and after a reboot of the backup host, ZFS mounts those file systems. I am planning to have multiple hosts beneath zroot i.e. zroot/host1, zroot/host2, ... and because of that, I would prefer not automounting those file systems or mount them below /zroot/hostX/ (*). Is this possible somehow i.e. is there a simple way to do that? Anyone doing something similar? Should I set each mountpoint on the backup system manually? Will this property change when sending an incremental backup with -Ri or will it be reset again? In that case, it would be necessary to set it every time after syncing. I am aware that there are ports which ease the job of backing up systems but in this case, I would prefer to do it without any additional software. But I am curious about how other tools deal with this if anyone knows? Thanks for your help! (*) in particular, when I am sending zroot/ROOT/default it may overlay my actual system config with the remote one. -- Christian Barthel <bch@online.de>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87v9ybv938.fsf>