*BSD News Article 75224


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!solaris.cc.vt.edu!usenet
From: grail@animagic.bevc.blacksburg.va.us (Giao Nguyen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: 01 Aug 1996 15:00:29 GMT
Organization: Virginia Tech, Blacksburg, Virginia
Lines: 27
Message-ID: <GRAIL.96Aug1110029@animagic.bevc.blacksburg.va.us>
References: <ts-0108961559090001@mac.infodirekt.de>
NNTP-Posting-Host: animagic.bevc.blacksburg.va.us
In-reply-to: ts@infodirekt.de's message of Thu, 01 Aug 1996 15:59:09 +0200

In article <ts-0108961559090001@mac.infodirekt.de> ts@infodirekt.de (Thomas Schreiber) writes:

> From: ts@infodirekt.de (Thomas Schreiber)
> Newsgroups: comp.unix.bsd.freebsd.misc
> Date: Thu, 01 Aug 1996 15:59:09 +0200
> Organization: infodirekt, Munich, Germany
> 
> I have installed a second drive on my FreeBSD 2.1 machine
> and want to move a few file systems around now.
> 
> What is the best way to copy directory trees with preserving
> access dates, permissions, links and so on?
> 
> I know about
> 
>   cp -pr
>   tar cf - | (cd destdir; tar xf -)
> 
> but both seem to not exactly preserve directory trees.

Well, how about cp -pR?


Giao
-- 
"The gun in my mouth was real and the taste blew my mind "
                                                -- Megadeth, 99 Ways to Die