Summary: gcc creating non-existant links

From: Kirkland, Mike # IHTUL <mike.kirkland_at_ndchealth.com>
Date: Mon, 09 Jul 2001 16:04:55 -0500

Thanks to Sheila Hollenbaugh [shollen_at_cs.wright.edu], and Udo de Boer
[Udo.de.boer_at_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_at_ndchealth.com <mailto:mike.kirkland_at_ndchealth.com>
NDC®| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136
Received on Mon Jul 09 2001 - 21:10:47 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT