From owner-freebsd-questions@freebsd.org Wed Feb 20 22:02:14 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 8FDE614DE10B for ; Wed, 20 Feb 2019 22:02:14 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (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 CC37170FD6 for ; Wed, 20 Feb 2019 22:02:12 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Duplicating file system Date: Wed, 20 Feb 2019 15:02:07 -0700 References: <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> <32153EA7-4BC5-4EE2-98FA-5BDEE1903BA3@cretaforce.gr> <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr> To: Farhan Khan via freebsd-questions In-Reply-To: <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr> Message-Id: <0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657@kreme.com> X-Mailer: Apple Mail (2.3445.104.2) X-Rspamd-Queue-Id: CC37170FD6 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [2.00 / 15.00]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; NEURAL_HAM_MEDIUM(-0.01)[-0.011,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MISSING_MIME_VERSION(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.76)[-0.764,0]; IP_SCORE(-0.02)[asn: 209(-0.02), country: US(-0.07)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mail.covisp.net]; NEURAL_SPAM_SHORT(0.70)[0.702,0]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[42.55.121.65.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] 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: Wed, 20 Feb 2019 22:02:14 -0000 On 20 Feb 2019, at 13:26, Christos Chatzaras = wrote: > On 20 Feb 2019, at 22:13, Christos Chatzaras = wrote: >> On 20 Feb 2019, at 21: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. >>>=20 >>> How would I do this? >>>=20 >>> I don=E2=80=99t 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. >>>=20 >>> --=20 >>> This is my signature. There are many like it, but this one is mine. >>=20 >> If both disks have the same size the easiest but not fastest way is = to use dd: >>=20 >> dd if=3D/dev/ada0 of=3D/dev/ada1 bs=3D64k >=20 > I read again your message and I see that you want to keep the = snapshots in 2nd drive, so instead of using dd you can: What I want is to copy all of dis1 to disk 2, bootable, but then for = disk 2 to stay updated as new data is written to disk 1. So, if a log file updates on disk 1, it is updated on disk 2, if not = instantly, very soon. --=20 If lawyers are disbarred and clergymen defrocked, doesn't it follow that electricians can be delighted, musicians denoted?