Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 2003 14:12:37 -0600
From:      Mike Meyer <mwm-dated-1042747957.6ce038@mired.org>
To:        Bill Moran <wmoran@potentialtech.com>
Cc:        dick hoogendijk <dick@nagual.st>, freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: ext3 -> fbsd
Message-ID:  <15904.31413.95743.309046@guru.mired.org>
In-Reply-To: <3E205F43.3080508@potentialtech.com>
References:  <20030111145859.GA28066@nagual.st> <3E202C89.3080306@potentialtech.com> <20030111160708.GA3152@nagual.st> <3E205F43.3080508@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In <3E205F43.3080508@potentialtech.com>, Bill Moran <wmoran@potentialtech.com> typed:
> dick hoogendijk wrote:
> Yup.  Use 'cp -Rp /old/part /new/part' to maintain as many perms
> as possible.

No, *don't* use cp for this. That will cause hard links to turn into
multiple files. Instead, use tar:

	(cd /old/part; tar cf - .) | (cd /new/part; tar xpf -)

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

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?15904.31413.95743.309046>