From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 23:39:37 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 3702416A4CE for ; Sun, 14 Mar 2004 23:39:37 -0800 (PST) Received: from smtpo02.icare.priv (unknown [203.78.64.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 295ED43D45 for ; Sun, 14 Mar 2004 23:39:36 -0800 (PST) (envelope-from satimis@icare.com.hk) Received: from smtpi01.icare.priv ([10.11.12.46]) by smtpo02.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 15 Mar 2004 15:39:34 +0800 Received: from 203.88.164.203 ([203.88.164.203]) by smtpi01.icare.priv with Microsoft SMTPSVC(5.0.2195.5329); Mon, 15 Mar 2004 15:39:34 +0800 From: Stephen Liu To: Kai Grossjohann , freebsd-questions@freebsd.org Date: Tue, 16 Mar 2004 00:30:56 +0800 User-Agent: KMail/1.5.4 References: <4054B6A3.7080704@stevenfettig.com> <200403152037.13184.satimis@icare.com.hk> <87znaid47w.fsf@emptyhost.emptydomain.de> In-Reply-To: <87znaid47w.fsf@emptyhost.emptydomain.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403160030.56998.satimis@icare.com.hk> X-OriginalArrivalTime: 15 Mar 2004 07:39:34.0393 (UTC) FILETIME=[A921F690:01C40A60] 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 07:39:37 -0000 - snip - > > Is the option > > -P --partial -- progress > > means 'incremental' ??? > > "-P" is the same as specifying both "--partial" and "--progress". > "--progress" means to show a progress meter. Normally, if you > interrupt rsync while it is transferring a file, rsync will delete the > partially transferred file. If you give the "--partial" option, it > will not do that. > > The advantage of specifying "--partial" is that you can interrupt it > in the midst of transferring a 1G file, and then you can resume the > transfer later. > > > What will be difference between > > './ $remote:$directory' and '$remote:$directory/' > > This question does not make sense. You should ask for the difference > between './ $remote:$directory' and '$remote:$directory/ .'; note the > trailing period. > > If you say "rsync a b" then this means copy from a to b, if you say > "rsync b a", then this means copy from b to a. In the above case, "a" > was "." and "b" was "$remote:$directory" ... > > Explaining the trailing slash is more difficult. I just remember a > rule of thumb: if you want to copy directories with rsync, always > specify a trailing slash. On both the source and the destination. Of > course, "man rsync" has the full story... Hi Kai and folks, Thanks for your advice. B.R. Stephen