From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653652421751.tru64-unix-managers.marc@archive.invalid> From: "Kirkland, Mike # IHTUL" Date: Mon, 09 Jul 2001 21:04:55 +0000 To: tru64-unix-managers Subject: Summary: gcc creating non-existant links X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653652421751 Thanks to Sheila Hollenbaugh [shollen@cs.wright.edu], and Udo de Boer [Udo.de.boer@ubero.nl]. They both suggested not using cp but using something like tar, vdump or cpio. Here are their suggestions. Rather than using cp, you may want to use tar, as it preserves soft = links instead of trying to copy the file it points to, and it also can = preserve ownership. Here is an example which will copy everything in /usr/local = to /disk2, preserving ownership and file permissions (if you do it as = root): (cd /usr/local;tar cvfpB - .)|(cd /disk2;tar xvfpB -) use vdump -0Df - /usr/local | cd /disk2/local ; vrestore -xf - This will copy everything including softlinks , devices and all rights. = You could also try cpio but there are to much options to get right. cp will = not copy everything correct. The "-" sign in the vdump and in the vrestore command mean standard input or standard output. Mike Kirkland Unix System Administrator National Data Corporation Phone: (918) 481-2817 Fax: (918) 481-4275 mike.kirkland@ndchealth.com NDC=AE| HEALTH 6100 South Yale Avenue Suite 1900 Tulsa, OK 74136