From owner-freebsd-questions Tue Oct 1 17:37:17 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 29AD637B404 for ; Tue, 1 Oct 2002 17:37:16 -0700 (PDT) Received: from bloodwood.adelaide.edu.au (bloodwood.adelaide.edu.au [129.127.43.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E10943E91 for ; Tue, 1 Oct 2002 17:37:14 -0700 (PDT) (envelope-from tpeter01@redtail.its.adelaide.edu.au) Received: from redtail.its.adelaide.edu.au ([129.127.46.157]) by bloodwood.adelaide.edu.au (Netscape Messaging Server 4.15) with ESMTP id H3BWDP00.HL6; Wed, 2 Oct 2002 10:07:04 +0930 Received: (from tpeter01@localhost) by redtail.its.adelaide.edu.au (8.11.6/8.11.6) id g920aaY72954; Wed, 2 Oct 2002 10:06:36 +0930 (CST) (envelope-from tpeter01) Date: Wed, 2 Oct 2002 10:06:36 +0930 From: Tim Peters To: Beech Rintoul Cc: freebsd-questions@freebsd.org Subject: Re: Copying directories contents Message-ID: <20021002003636.GA72811@adelaide.edu.au> References: <200210010955.35018.akbeech@anchoragerescue.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210010955.35018.akbeech@anchoragerescue.org> User-Agent: Mutt/1.4i 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 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. -tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message