Duplicating file system
freebsd at edvax.de
Thu Feb 21 07:14:49 UTC 2019
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.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions