From owner-freebsd-questions Tue Mar 25 10:18:26 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 E5E1637B401 for ; Tue, 25 Mar 2003 10:18:24 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4555F43FA3 for ; Tue, 25 Mar 2003 10:18:24 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.7/8.12.7) id h2PIII2T047223; Tue, 25 Mar 2003 12:18:18 -0600 (CST) (envelope-from dan) Date: Tue, 25 Mar 2003 12:18:18 -0600 From: Dan Nelson To: John Straiton Cc: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] file synchronization between two machines Message-ID: <20030325181818.GA24340@dan.emsphone.com> References: <20030325170212.GC48060@dan.emsphone.com> <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-25.0 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 In the last episode (Mar 25), John Straiton said: > > 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). You might have. For correct two-way replication, you need a history file that records the state of the filesystem as of the last time the replication ran. Otherwise you won't know whether the "file1 is on serverA but not on ServerB" case is due to the user creating a new file1 on serverA, or deleting an old file1 from ServerB. Rsync doesn't keep a history file, so all it can do it copy file1 over to serverB. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message