Backing Up a journaled FS
Polytropon
freebsd at edvax.de
Mon Dec 29 09:33:26 UTC 2014
On Mon, 29 Dec 2014 11:29:13 +0300, Odhiambo Washington wrote:
> So, do I have to disable the journaling option from the FS, or is there a
> better way to achieve the same result with journaling still on?
If you want to use dump/restore, you will probably have
to do one of the following things:
a) boot into single user mode and mount / read-only,
then run dump, or
b) probably a bad idea, but you _could_ (technically)
run "mount -fur /" and then run dump, afterwards
running "mount -fuw /".
Note that disabling the journaling option also requires
that the partition is _not_ in use, which means, it is
unmounted; see "man tunefs" for details.
Otherwise, using something different from dump/restore
could work better in your situation, maybe using cpio,
tar, or cpdup. You'd have to verify that file attributes
are also being copied 1:1, which is what dump/restore
is actually good at. In worst case, you could use dd
(like "dd if=/dev/ada0 of=/dev/ada1 bs=1m"), but even
if this will surely work, make sure that _no_ writing
is performed on the disk while reading.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list