From owner-freebsd-questions Wed Oct 2 12:28:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD77337B401 for ; Wed, 2 Oct 2002 12:28:39 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E5D243E42 for ; Wed, 2 Oct 2002 12:28:39 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id MUA74016; Wed, 02 Oct 2002 12:28:37 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id C86045D04; Wed, 2 Oct 2002 12:28:36 -0700 (PDT) To: Tim Peters Cc: Beech Rintoul , freebsd-questions@freebsd.org Subject: Re: Copying directories contents In-reply-to: Your message of "Wed, 02 Oct 2002 10:06:36 +0930." <20021002003636.GA72811@adelaide.edu.au> Date: Wed, 02 Oct 2002 12:28:36 -0700 From: "Kevin Oberman" Message-Id: <20021002192836.C86045D04@ptavv.es.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Wed, 2 Oct 2002 10:06:36 +0930 > From: Tim Peters > Sender: owner-freebsd-questions@FreeBSD.ORG > > On Tue, Oct 01, 2002 at 09:55:34AM -0800, Beech Rintoul wrote: > > I'm need to take the contents including dotfiles from about 300 user > > directories and move them into another set of identical directories on > > another filesystem. Is there an easy script to do this? I dont want to > > overwrite the contents of the target directories just add to them. > > Both filesystems are mounted on the source machine. > > i know people have already answered this, but noone mentioned the > incredibly simple: > > # pax -rw /source /destination > > probably because it's not very portable - i only see pax(1) on > freebsd machines here. As far as I know, pax(1) is required for POSIX compliance. I've seen it on a great many systems including a couple that were not remotely Unix. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message