Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 15:02:07 -0700
From:      "@lbutlr" <kremels@kreme.com>
To:        Farhan Khan via freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Duplicating file system 
Message-ID:  <0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657@kreme.com>
In-Reply-To: <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr>
References:  <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> <32153EA7-4BC5-4EE2-98FA-5BDEE1903BA3@cretaforce.gr> <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

On 20 Feb 2019, at 13:26, Christos Chatzaras <chris@cretaforce.gr> wrote:
> On 20 Feb 2019, at 22:13, Christos Chatzaras <chris@cretaforce.gr> wrote:
>> On 20 Feb 2019, at 21:52, Cerebus <kreme@kreme.com> 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.
>>> 
>>> -- 
>>> This is my signature. There are many like it, but this one is mine.
>> 
>> If both disks have the same size the easiest but not fastest way is to use dd:
>> 
>> dd if=/dev/ada0 of=/dev/ada1 bs=64k
> 
> 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.

-- 
If lawyers are disbarred and clergymen defrocked, doesn't it follow that
electricians can be delighted, musicians denoted?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657>