From owner-freebsd-questions Mon Oct 7 05:39:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA24609 for questions-outgoing; Mon, 7 Oct 1996 05:39:11 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA24583 for ; Mon, 7 Oct 1996 05:39:07 -0700 (PDT) Received: by mail.EUnet.hu, id OAA22187; Mon, 7 Oct 1996 14:38:57 +0200 Received: by CoDe.CoDe.hu (NAA01016); Mon, 7 Oct 1996 13:59:34 GMT From: Gabor Zahemszky Message-Id: <199610071359.NAA01016@CoDe.CoDe.hu> Subject: Re: help on newfs and a new partition To: freebsd-questions@freebsd.org Date: Mon, 7 Oct 1996 13:59:33 +0000 (GMT) Cc: grog@lemis.de In-Reply-To: <199610060904.LAA26162@allegro.lemis.de> from "Greg Lehey" at Oct 6, 96 11:04:28 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > This doesn't happen under FreeBSD. Did you see it under System V? In > any case, this (traditional) method of copying is no longer > necessary. cp has an -R option which says "recursively copy > subdirectories", so instead of > > (cd /usr/local; tar cf - .)|(cd /mnt; tar xfv -) > > you can write > > cp -pR /usr/local /mnt > > The -p option has the same meaning as with tar: keep the original > permissions. Only one another problem: if I remember well, cp cannot handle hard links (somebody've written a question about it!). If you try it on /stand, you'll get a hundred different files, instead of hundred hard links. So, it's better to use this one. Or try these: a) cd /usr/local ; find . -depth -print | cpio -pumd /mnt b) cd /usr/local ; find . -depth -print | pax -rw /mnt c) something like this: cd /usr/local ; pax -rw . -d /mnt -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky