Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2001 04:52:59 -0600
From:      Mike Meyer <mwm@mired.org>
To:        Scott Mitchell <scott.mitchell@mail.com>
Cc:        questions@freebsd.org
Subject:   Re: Dump/restore from Linux to FreeBSD machine
Message-ID:  <15342.22667.202690.787291@guru.mired.org>
In-Reply-To: <31847579@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Mitchell <scott.mitchell@mail.com> types:
> On Fri, Nov 09, 2001 at 08:25:43AM -0600, Douglas Egan wrote:
> > Since you are going from one machine to another, and one filesystem to
> > another, can't you just use tar via nfs.
> > >From 'man tar'
> >      To move file hierarchies, use a command line like this:
> >      tar -cf - -C srcdir . | tar xpf - -C destdir
> That would probably have worked too... the reason I used dump is just that
> various things I've read advised against tar for this kind of thing,
> because it doesn't handle sparse files, oddball permissions, device nodes,
> etc. too well.  There probably aren't any of these on the disk in question,
> but I didn't want to grovel through the whole 50+GB of it to find out, then
> have to deal with any special cases that came up :-(

While all that's true, those oddball things tend to be *different* on
different operating systems. Does Linux support the same set of flags
as FreeBSD, and are they represented the same way in a dump archive?
If not, you're going to have problems. Device nodes are almost
certainly going to cause problems if you try and move them. Sparse
files will probably work properly, but gnu tar handles those in a
reasonably sane manner - or it used to.

The reason dump/restore works better on a FreeBSD is because it's
synced with the system and understands it. But those things work
*against* having it work properly in moving data from FreeBSD to other
Unix variants. In the latter case, you're better off using a program
designed for portability, like tar, pax, or cpio.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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