Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 23:08:57 -0800
From:      "Jack L." <xxjack12xx@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        "@lbutlr" <kremels@kreme.com>,  "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Duplicating file system
Message-ID:  <CALeGphzvXyC698XqHO0owP43gad5tnjRsQTQU0-xLYi-%2BVNeBg@mail.gmail.com>
In-Reply-To: <20190221075515.c815b269.freebsd@edvax.de>
References:  <0A33E3BE-96C9-4D83-B9F7-D4D2792B5161@kreme.com> <32153EA7-4BC5-4EE2-98FA-5BDEE1903BA3@cretaforce.gr> <4CAB4BC4-0473-41CF-AF03-D1CE796F5545@cretaforce.gr> <0F4BBC09-3F9D-4740-A8E4-BB3B87F2A657@kreme.com> <20190221032121.c0006dfe.freebsd@edvax.de> <C8D2F401-AC47-4089-AD34-A2E7E8E033C0@kreme.com> <20190221075515.c815b269.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
I missed the original thread but if I want to duplicate my filesystem,
i usually use the dump and restore method

cd targetdir;dump -0f - /dev/device|restore -rf -

that will dump the /dev/device to stdout and then restore stdout to
the target. Very quick.

On Wed, Feb 20, 2019 at 11:00 PM Polytropon <freebsd@edvax.de> wrote:
>
> On Wed, 20 Feb 2019 20:59:21 -0700, @lbutlr wrote:
> > On 20 Feb 2019, at 19:21, Polytropon <freebsd@edvax.de> wrote:
> > > With this in mind, I'd start with an 1:1 copy using dd, and from that
> > > point on, have a scheduled job of rsync or cpdup in place to have any
> > > source changes affect the "copy drive".
> >
> > I will try cpdup as I have tried rsync already and it is too
> > resource intensive to run it constantly. Even with a 5 minute
> > delay sometimes a task will not finish before the next one
> > starts and then a cascade will bring the system down as more
> > and more processes get stuck.
>
> This makes the scenario even more look like a situation where
> a mirrored approach (like software RAID, gmirror) is a good
> solution; writes will happen in quasi-parallel and transparent
> to the writing process, so those race conditions won't appear.
>
> But definitely try cpdup, it might work fast enough to fit
> the time window. :-)
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALeGphzvXyC698XqHO0owP43gad5tnjRsQTQU0-xLYi-%2BVNeBg>