From owner-freebsd-questions Tue Mar 25 9: 2:15 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 6C94A37B401 for ; Tue, 25 Mar 2003 09:02:13 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEBAB43FCB for ; Tue, 25 Mar 2003 09:02:12 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.7/8.12.7) id h2PH2CG2037248 for freebsd-questions@FreeBSD.ORG; Tue, 25 Mar 2003 11:02:12 -0600 (CST) (envelope-from dan) Date: Tue, 25 Mar 2003 11:02:12 -0600 From: Dan Nelson To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] file synchronization between two machines Message-ID: <20030325170212.GC48060@dan.emsphone.com> References: <20030325165723.GB2618@keyslapper.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030325165723.GB2618@keyslapper.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-24.8 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), Louis LeBlanc said: > That sounds right, but what if the file last changed on the remote > machine? Will rsync copy the newer remote copy to the local machine > when necessary and copy the newer local copy to the remote machine > when necessary? This is the problem, really. Running rsync on both > machines won't do any good, because the remote machine can't come > thru the firewall. You run it on one machine twice, once for each direction. From the manpage: To synchronize my samba source trees I use the following: rsync -avuzb --exclude '*~' samba:samba/ . rsync -Cavuzb . samba:samba/ The only drawback is rsync will never delete files; you have to manually remove them from both machines manually. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message