Date: Mon, 29 Dec 2014 10:33:15 +0100 From: Polytropon <freebsd@edvax.de> To: Odhiambo Washington <odhiambo@gmail.com> Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: Backing Up a journaled FS Message-ID: <20141229103315.734bc78a.freebsd@edvax.de> In-Reply-To: <CAAdA2WPkX0qNKofG-U9fzOBH-Zh_uiCGmYodfy8NuSSO1YTQdw@mail.gmail.com> References: <CAAdA2WPkX0qNKofG-U9fzOBH-Zh_uiCGmYodfy8NuSSO1YTQdw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141229103315.734bc78a.freebsd>