From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 19:27:44 2004 Return-Path: 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 0BA0516A4CE for ; Sun, 14 Mar 2004 19:27:44 -0800 (PST) Received: from smtpo02.icare.priv (unknown [203.78.64.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9B1243D46 for ; Sun, 14 Mar 2004 19:27:42 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi02.icare.priv ([10.11.12.45]) by smtpo02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 15 Mar 2004 11:26:54 +0800 Received: from 203.88.164.170 ([203.88.164.170]) by smtpi02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 15 Mar 2004 11:26:54 +0800 From: Stephen Liu To: freebsd@celestial.com, freebsd-questions@freebsd.org Date: Mon, 15 Mar 2004 20:37:12 +0800 User-Agent: KMail/1.5.4 References: <4054B6A3.7080704@stevenfettig.com> <20040314201032.GA72170@alexis.mi.celestial.com> In-Reply-To: <20040314201032.GA72170@alexis.mi.celestial.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403152037.13184.satimis@icare.com.hk> X-OriginalArrivalTime: 15 Mar 2004 03:26:54.0625 (UTC) FILETIME=[5D34F110:01C40A3D] Subject: Re: Two-way Sync of Directories - how? (rsync?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 03:27:44 -0000 On Monday 15 March 2004 04:10, Bill Campbell wrote: > I would do this with two rsync runs from one machine > > cd $directory > rsync -e ssh -vaurP ./ $remote:$directory > rsync -e ssh -vaurP $remote:$directory/ . Hi Bill, Is the option -P --partial -- progress means 'incremental' ??? What will be difference between './ $remote:$directory' and '$remote:$directory/' TIA B.R. Stephen Liu > > Better yet, set up the directories in the rsyncd.conf files on > each machine: > > cd $directory > rsync -vaurP ./ ${remote}::dir_module/ > rsync -vaurP ${remote}::dir_module/ . > > Bill