Date: Mon, 7 Oct 1996 13:59:33 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: freebsd-questions@freebsd.org Cc: grog@lemis.de Subject: Re: help on newfs and a new partition Message-ID: <199610071359.NAA01016@CoDe.CoDe.hu> In-Reply-To: <199610060904.LAA26162@allegro.lemis.de> from "Greg Lehey" at Oct 6, 96 11:04:28 am
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <zgabor@CoDe.hu> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610071359.NAA01016>