From owner-freebsd-questions Mon Feb 26 11:31: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id 5674A37B4EC for ; Mon, 26 Feb 2001 11:31:00 -0800 (PST) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.2/8.11.2) id f1QJUxC76526; Mon, 26 Feb 2001 14:30:59 -0500 (EST) (envelope-from lowell) To: freebsd-questions@freebsd.org Subject: Re: cp -pPR References: <000d01c09f99$9d05f580$0400a8c0@vectra> <3A99E388.FAC483AC@pacbell.net> From: Lowell Gilbert Date: 26 Feb 2001 14:30:58 -0500 In-Reply-To: fscked@pacbell.net's message of "26 Feb 2001 06:05:37 +0100" Message-ID: <44lmqtfdhp.fsf@lowellg.ne.mediaone.net> Lines: 32 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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