tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: gcc creating non-existant links
@ 2001-07-09 21:04 Kirkland, Mike # IHTUL
  0 siblings, 0 replies; only message in thread
From: Kirkland, Mike # IHTUL @ 2001-07-09 21:04 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-09 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-09 21:04 Summary: gcc creating non-existant links Kirkland, Mike # IHTUL

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox