Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2001 21:03:04 -0800
From:      richard childers <fscked@pacbell.net>
To:        Ballard Jonathan H <sacramentokidd@yahoo.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: cp -pPR
Message-ID:  <3A99E388.FAC483AC@pacbell.net>
References:  <000d01c09f99$9d05f580$0400a8c0@vectra>

next in thread | previous in thread | raw e-mail | index | archive | help

--------------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

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#FFFFFF">
# cd /src/dir
<br># tar cf - . | ( cd /target/dir; tar xvBpf - )
<p>(This is from memory; tar(1) flags change from epoch to epoch, so trust
but verify. :-)
<p>Or did I misunderstand the question?
<br>&nbsp;
<p>-- richard
<br>&nbsp;
<p>Ballard Jonathan H wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Dear
FreeBSD Regents,</font></font>&nbsp;<font face="Arial"><font size=-1>Yesterday
to duplicate directory structures from one mount to another the `cp -pPR`
command was used.&nbsp; Everything except the directory times and few files
with 'schng' where duplicated without any problems reported.&nbsp; The
files with the 'schng' flags were duplicated except yet returned 'warnings'.&nbsp;
Zero length 'schng' files (/var/pwcheck/pwcheck) reported an error while
duplicated.&nbsp; Directory dates were updated yet the orginal directory
dates was expected to be duplicated.</font></font>&nbsp;<font face="Arial"><font size=-1>Is
there another method to acheived desired results?</font></font>&nbsp;<font face="Arial"><font size=-1>$
uname -a</font></font><font face="Arial"><font size=-1>FreeBSD abyss.cybertronix.org
4.2-STABLE FreeBSD 4.2-STABLE #3: Wed Dec 13 09:33:45 PST 2000&nbsp;&nbsp;&nbsp;
<a href="mailto:root@abyss.cybertronix.org:/usr/src/sys/compile/CYBETRONIX">root@abyss.cybertronix.org:/usr/src/sys/compile/CYBETRONIX</a>&nbsp;
i386</font></font></blockquote>

<p>--
<br>Richard A. Childers
<br>Senor UNIX Administrator
<br>fscked@pacbell.net (email)
<br>203.556.8471 (voice/msgs)
<p># Providing administrative expertise (not 'damage control') since 1986.
<br># PGP fingerprint: 7EFF 164A E878 7B04 8E9F&nbsp; 32B6 72C2 D8A2 582C
4AFA
<br>&nbsp;
</body>
</html>

--------------5B293E473ADF779274395BBF--


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?3A99E388.FAC483AC>