From owner-freebsd-questions Sun Feb 25 21: 5:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 69DA737B4EC for ; Sun, 25 Feb 2001 21:05:23 -0800 (PST) (envelope-from fscked@pacbell.net) Received: from pacbell.net ([63.203.75.86]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G9C00GN1LE8A7@mta5.snfc21.pbi.net> for questions@FreeBSD.ORG; Sun, 25 Feb 2001 20:49:21 -0800 (PST) Date: Sun, 25 Feb 2001 21:03:04 -0800 From: richard childers Subject: Re: cp -pPR To: Ballard Jonathan H Cc: questions@FreeBSD.ORG Message-id: <3A99E388.FAC483AC@pacbell.net> Organization: The Free State of Dis MIME-version: 1.0 X-Mailer: Mozilla 4.73 [en] (WinNT; U) Content-type: multipart/alternative; boundary="------------5B293E473ADF779274395BBF" X-Accept-Language: en References: <000d01c09f99$9d05f580$0400a8c0@vectra> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --------------5B293E473ADF779274395BBF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit # 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? -- richard Ballard Jonathan H wrote: > Dear FreeBSD Regents, Yesterday to duplicate directory structures from > one mount to another the `cp -pPR` command was used. Everything > except the directory times and few files with 'schng' where duplicated > without any problems reported. The files with the 'schng' flags were > duplicated except yet returned 'warnings'. Zero length 'schng' files > (/var/pwcheck/pwcheck) reported an error while duplicated. Directory > dates were updated yet the orginal directory dates was expected to be > duplicated. Is there another method to acheived desired results? $ > uname -aFreeBSD abyss.cybertronix.org 4.2-STABLE FreeBSD 4.2-STABLE > #3: Wed Dec 13 09:33:45 PST 2000 > root@abyss.cybertronix.org:/usr/src/sys/compile/CYBETRONIX i386 -- Richard A. Childers Senor UNIX Administrator fscked@pacbell.net (email) 203.556.8471 (voice/msgs) # Providing administrative expertise (not 'damage control') since 1986. # PGP fingerprint: 7EFF 164A E878 7B04 8E9F 32B6 72C2 D8A2 582C 4AFA --------------5B293E473ADF779274395BBF Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit # 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?
 

-- richard
 

Ballard Jonathan H wrote:

Dear FreeBSD Regents, Yesterday to duplicate directory structures from one mount to another the `cp -pPR` command was used.  Everything except the directory times and few files with 'schng' where duplicated without any problems reported.  The files with the 'schng' flags were duplicated except yet returned 'warnings'.  Zero length 'schng' files (/var/pwcheck/pwcheck) reported an error while duplicated.  Directory dates were updated yet the orginal directory dates was expected to be duplicated. Is there another method to acheived desired results? $ uname -aFreeBSD abyss.cybertronix.org 4.2-STABLE FreeBSD 4.2-STABLE #3: Wed Dec 13 09:33:45 PST 2000    root@abyss.cybertronix.org:/usr/src/sys/compile/CYBETRONIX  i386

--
Richard A. Childers
Senor UNIX Administrator
fscked@pacbell.net (email)
203.556.8471 (voice/msgs)

# Providing administrative expertise (not 'damage control') since 1986.
# PGP fingerprint: 7EFF 164A E878 7B04 8E9F  32B6 72C2 D8A2 582C 4AFA
  --------------5B293E473ADF779274395BBF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message