Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2019 08:14:34 +0100
From:      Polytropon <freebsd@edvax.de>
To:        "Jack L." <xxjack12xx@gmail.com>
Cc:        "@lbutlr" <kremels@kreme.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Duplicating file system
Message-ID:  <20190221081434.365f78a7.freebsd@edvax.de>
In-Reply-To: <CALeGphzvXyC698XqHO0owP43gad5tnjRsQTQU0-xLYi-%2BVNeBg@mail.gmail.com>
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> <CALeGphzvXyC698XqHO0owP43gad5tnjRsQTQU0-xLYi-%2BVNeBg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 20 Feb 2019 23:08:57 -0800, Jack L. wrote:
> 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.

The problem here probably is that it won't be fast enough,
and that it requires the source device to be unmounted (or
at least a snapshot will be used). As for the _initial_
duplication, this method works really well, but it requires
that you have already setup the correct partitioning beforehand.
With the dd approach and identical devices, this step can be
omitted. For the subsequent "syncing", an incremental method
as supported by "dump | restore" would probably also be
possible, but again not fast enough, plus the "snapshot
problem" mentioned initially.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190221081434.365f78a7.freebsd>