From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 21:41:26 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 2B1ED16A4CE for ; Sun, 14 Mar 2004 21:41:26 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B6ADC43D2D for ; Sun, 14 Mar 2004 21:41:25 -0800 (PST) (envelope-from freebsd@stevenfettig.com) Received: (qmail 31758 invoked from network); 15 Mar 2004 05:41:24 -0000 Received: from 66-168-50-57.jvl.wi.charter.com (HELO stevenfettig.com) (66.168.50.57) by relay.pair.com with SMTP; 15 Mar 2004 05:41:24 -0000 X-pair-Authenticated: 66.168.50.57 Message-ID: <405541ED.3040704@stevenfettig.com> Date: Sun, 14 Mar 2004 23:41:01 -0600 From: "Steven N. Fettig" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20040213 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephen Liu References: <4054B6A3.7080704@stevenfettig.com> <20040314201032.GA72170@alexis.mi.celestial.com> <200403152037.13184.satimis@icare.com.hk> In-Reply-To: <200403152037.13184.satimis@icare.com.hk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd@celestial.com cc: freebsd-questions@freebsd.org 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 05:41:26 -0000 -P appears to allow you to show progress graphically with the -v switch also chosen. I think his example: cd $directory rsync -e ssh -vaurP ./ $remote:$directory rsync -e ssh -vaurP $remote:$directory/ . was meant to look like: cd $directory rsync -e ssh -vaurP ./ $remote:$directory rsync -e ssh -vaurP $remote:$directory ./ <-- (dot)(slash) not (slash)(space)(dot) a trailing slash copies directory contents whereas not having the slash copies that directory, too. (I.E. if I am rsyncing /home/me on two machines, /home/me will copy everything including the me directory, whereas /home/me/ will only copy the contents of me. This becomes important - as I have learned the hard way - when syncronizing two dissimilar directories - i.e. /home/me to /backup/me/date.) hth, Steve Fettig p.s. I hope I got Bill's message correctly... Stephen Liu wrote: >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 >> >> > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >