From: "Kirkland, Mike # IHTUL" <mike.kirkland () ndchealth ! com>
To: tru64-unix-managers
Subject: Summary: gcc creating non-existant links
Date: Mon, 09 Jul 2001 21:04:55 +0000 [thread overview]
Message-ID: <102653652421751.tru64-unix-managers.marc@archive.invalid> (raw)
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 <mailto:mike.kirkland@ndchealth.com>
NDC=AE| HEALTH
6100 South Yale Avenue
Suite 1900
Tulsa, OK 74136
reply other threads:[~2001-07-09 21:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox