From owner-freebsd-questions@freebsd.org Thu Feb 21 14:37:55 2019 Return-Path: Delivered-To: freebsd-questions@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 6E49C14E2B1F for ; Thu, 21 Feb 2019 14:37:55 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DC6D753E3 for ; Thu, 21 Feb 2019 14:37:55 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: matthew/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id D7BA3B2D8 for ; Thu, 21 Feb 2019 14:37:54 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.212.184.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id E05AF1A54 for ; Thu, 21 Feb 2019 14:37:52 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk/E05AF1A54; dkim=none; dkim-atps=neutral Subject: Re: Duplicating file system To: freebsd-questions@freebsd.org References: <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> From: Matthew Seaman Message-ID: <11802bfa-c3a8-9197-eb59-30d687561135@FreeBSD.org> Date: Thu, 21 Feb 2019 14:37:51 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0DC6D753E3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2019 14:37:55 -0000 On 20/02/2019 19:52, Cerebus wrote: > I have an 11.2 system with two identical SSD drives. Currently I am > using rsnapshot to keep backups of the primary drive on the secondary > drive, but I am interested in having the second drive have a > duplicate copy of the entire file system in a bootable form, updated > as the root drive is modified. > > How would I do this? > > I don’t really want a RAID0 because I want to also keep the periodic > backups from rsnapshot as the drives are about 10x larger than my > data. Well... you could just use a ZFS mirror setup and create snapshots at regular intervals, which solves both your 'keeping in sync' and your 'keep historical backups in a space efficient way' requirements. Cheers, Matthew