Skip site navigation (1)Skip section navigation (2)
Date:      26 Feb 2001 14:30:58 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: cp -pPR
Message-ID:  <44lmqtfdhp.fsf@lowellg.ne.mediaone.net>
In-Reply-To: fscked@pacbell.net's message of "26 Feb 2001 06:05:37 %2B0100"
References:  <000d01c09f99$9d05f580$0400a8c0@vectra> <3A99E388.FAC483AC@pacbell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
fscked@pacbell.net (richard childers) writes:

> # cd /src/dir
> # tar cf - . | ( cd /target/dir; tar xvBpf - )
> 
> (This is from memory; tar(1) flags change from epoch to epoch, so trust
> but verify. :-)
> 
> Or did I misunderstand the question?

I suspect you did; it involved file flags, which tar won't completely
get right either.  I'm not sure if cpio will, either, although I don't
think so.  

To be honest, cp(1) (which was the approach taken by the original
poster) is *supposed* to get file flags right, but I can't figure out,
in a *very* quick look at the relevant code, how that's supposed to
work.  I can't reproduce the original poster's problem, either; "cp -p"
copies uchg flags for me; I didn't actually try with schg...

> Richard A. Childers
> Senor UNIX Administrator

"That's *MISTER* UNIX Administrator to you, Anglo!"

 - Lowell Gilbert
-- 
 - checks business card to see if "senior" is in current job title
 - remembers specifically asking for job title to be left off business card
 - tries to remember where employment contract is...
 - discovers boss doesn't know job title either
 - decides not to call HR just for a silly .sig footnote on freebsd-questions

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44lmqtfdhp.fsf>