Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2001 20:53:10 -0800
From:      "Crist J. Clark" <cjclark@reflexnet.net>
To:        Ballard Jonathan H <sacramentokidd@yahoo.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: cp -pPR
Message-ID:  <20010225205310.V89396@rfx-216-196-73-168.users.reflex>
In-Reply-To: <000d01c09f99$9d05f580$0400a8c0@vectra>; from sacramentokidd@yahoo.com on Sun, Feb 25, 2001 at 06:12:46PM -0800
References:  <000d01c09f99$9d05f580$0400a8c0@vectra>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 25, 2001 at 06:12:46PM -0800, 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 -a
> FreeBSD 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

  $ cd dest_dir
  $ tar cf - -C /old/dir/path dir1 dir2 | tar xf -

-- 
Crist J. Clark                           cjclark@alum.mit.edu

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?20010225205310.V89396>