*BSD News Article 75355


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!news.PBI.net!news.mathworks.com!newsfeed.internetmci.com!in3.uu.net!news.cybercomm.net!usenet
From: "glen" <gi143@cybercomm.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: 3 Aug 1996 18:11:36 GMT
Organization: CyberComm Online Services
Lines: 26
Message-ID: <01bb8253$ab5fcf60$6ac4abc7@rick-dell>
References: <ts-0108961559090001@mac.infodirekt.de>
NNTP-Posting-Host: sl-010.sl.cybercomm.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft Internet News 4.70.1141

The best way to copy directory trees is with cpio.
look at the cpio and find man pages.

Thomas Schreiber <ts@infodirekt.de> wrote in article
<ts-0108961559090001@mac.infodirekt.de>...
> 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.
> 
> Thomas
> 
> ____________________________________________________________
> infodirekt - Thomas Schreiber         Tel:  +49 89/324796-50
> Frankfurter Ring 193a                 Fax:  +49 89/324796-51
> 80807 Muenchen, Germany              email: ts@infodirekt.de
> ________________________ See you at http://www.infodirekt.de
>