From owner-freebsd-questions Tue Oct 1 12:49:24 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 51CAB37B401 for ; Tue, 1 Oct 2002 12:49:23 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF5943E4A for ; Tue, 1 Oct 2002 12:49:22 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP id MUA74016; Tue, 01 Oct 2002 12:49:20 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 212935D04; Tue, 1 Oct 2002 12:49:20 -0700 (PDT) To: Beech Rintoul Cc: freebsd-questions@freebsd.org Subject: Re: Copying directories contents In-reply-to: Your message of "Tue, 01 Oct 2002 09:55:34 -0800." <200210010955.35018.akbeech@anchoragerescue.org> Date: Tue, 01 Oct 2002 12:49:20 -0700 From: "Kevin Oberman" Message-Id: <20021001194920.212935D04@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 > From: Beech Rintoul > Date: Tue, 1 Oct 2002 09:55:34 -0800 > Sender: owner-freebsd-questions@FreeBSD.ORG > > 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. /usr/ports/net/rsync? It is vastly more efficient than copying file-by-file or even than using rat(1) and copying the single file. rsync(1) must be installed on both systems. 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