*BSD News Article 75631


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!swidir.switch.ch!scsing.switch.ch!ubnsrv.unisource.ch!peroni.ita.tip.net!news.vol.it!news.sprintlink.net!news-dc-2.sprintlink.net!newsreader.sprintlink.net!news.sprintlink.net!news-pen-4.sprintlink.net!guitar.sound.net!winternet.com!news2.interlog.com!news1.io.org!not-for-mail
From: taob@zap.io.org (Brian Tao)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: 7 Aug 1996 13:49:36 -0400
Organization: Internex Online Inc., Toronto, Ontario, Canada
Lines: 12
Message-ID: <4uakvg$2mo@zap.io.org>
References: <ts-0108961559090001@mac.infodirekt.de>
NNTP-Posting-Host: zap.io.org

In article <ts-0108961559090001@mac.infodirekt.de>, Thomas Schreiber <ts@infodirekt.de> wrote:
>
>What is the best way to copy directory trees with preserving
>access dates, permissions, links and so on?

    cd /olddir ; pax -rwvpe . /newdir

(rwvpe = read, write, verbose, preserve everything)
-- 
Brian Tao (BT300, taob@io.org, taob@ican.net)
Senior Systems and Network Administrator, Internet Canada Corp.
"Though this be madness, yet there is method in't"