From owner-freebsd-questions Tue Mar 25 9:51:43 2003 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 1991037B401 for ; Tue, 25 Mar 2003 09:51:41 -0800 (PST) Received: from mail-relay1.mirrorimage.net (mail-relay1.mirrorimage.net [209.58.140.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B98E43FB1 for ; Tue, 25 Mar 2003 09:51:40 -0800 (PST) (envelope-from leblanc@mirrorimage.net) Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by mail-relay1.mirrorimage.net (8.9.3/8.9.3) with ESMTP id MAA25692 for ; Tue, 25 Mar 2003 12:51:39 -0500 Received: from leblanc.mirrorimage.net (localhost [127.0.0.1]) by leblanc.mirrorimage.net (8.12.3/8.11.4) with ESMTP id h2PHpdMC007190 for ; Tue, 25 Mar 2003 12:51:39 -0500 (EST) (envelope-from leblanc@leblanc.mirrorimage.net) Received: (from leblanc@localhost) by leblanc.mirrorimage.net (8.12.3/8.12.3/Submit) id h2PHpc0a007189 for freebsd-questions@FreeBSD.ORG; Tue, 25 Mar 2003 12:51:38 -0500 (EST) Date: Tue, 25 Mar 2003 12:51:38 -0500 From: Louis LeBlanc To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] file synchronization between two machines Message-ID: <20030325175138.GC2618@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20030325170212.GC48060@dan.emsphone.com> <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-21.1 required=5.0 tests=AWL,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 03/25/03 12:23 PM, John Straiton sat at the `puter and typed: > > The only drawback is rsync will never delete files; you have to > > manually remove them from both machines manually. > > It wouldn't be near as neat a utility if that were true (unless I > misunderstood your statement). > > From the man page for rsync: > > --delete delete files that don't exist on > the sending side > --delete-excluded also delete excluded files on the > receiving side > --delete-after delete after transferring, not > before > --ignore-errors delete even if there are IO > errors Cool. It also occurred to me that a flag that tells rsync not to copy files if they aren't already at the destination would be useful. --existing will do it. Looking thru the manpage, I see that the -C flag is a cvs style exclusion. Is there any reason for using an explicit exclusion in one command and a CVS style exclusion in the other? rsync -avuzb --exclude '*~' samba:samba/ . rsync -Cavuzb . samba:samba/ Other than this, I think you've all helped me solve this problem. Thank you! Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Technological progress has merely provided us with more efficient means for going backwards. -- Aldous Huxley To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message