From owner-freebsd-questions Tue Mar 25 8:57:33 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 B767037B404 for ; Tue, 25 Mar 2003 08:57:30 -0800 (PST) Received: from mail-relay1.mirrorimage.net (mail-relay1.mirrorimage.net [209.58.140.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5EB743F85 for ; Tue, 25 Mar 2003 08:57:29 -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 LAA24590 for ; Tue, 25 Mar 2003 11:57:28 -0500 Received: from leblanc.mirrorimage.net (localhost [127.0.0.1]) by leblanc.mirrorimage.net (8.12.3/8.11.4) with ESMTP id h2PGvNMC002854 for ; Tue, 25 Mar 2003 11:57:23 -0500 (EST) (envelope-from leblanc@leblanc.mirrorimage.net) Received: (from leblanc@localhost) by leblanc.mirrorimage.net (8.12.3/8.12.3/Submit) id h2PGvNEZ002853 for freebsd-questions@FreeBSD.ORG; Tue, 25 Mar 2003 11:57:23 -0500 (EST) Date: Tue, 25 Mar 2003 11:57:23 -0500 From: Louis LeBlanc To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] file synchronization between two machines Message-ID: <20030325165723.GB2618@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-16.2 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 06:40 PM, Yonatan Bokovza sat at the `puter and typed: > > On Tuesday, Mar 25, 2003, at 08:01 US/Pacific, Louis LeBlanc wrote: > > > > > Hey all. Sorry for the OT question, but here goes. > > > > > > Anyone know of a tool or method that can check the last modification > > > date of two files under these conditions and keep them in sync? > > > > I've never tried this, but you might give rsync with the -u option a > > try (test it first on unimportant files). I believe you > > would need to > > run it on both machines as it would only update in one direction. > > rsync (from ports/net/rsync) does not need a peer on the other side. > You can think of is as a clever scp- you can copy to/from one server > to/from another server, only rsync can sync files on the block level, > so it's supposed to be more efficient than merely copying the files over. > For your case, I'd say run a cron job at the firewalled machine to rsync > the files over to the other one. 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. I had already thought of another recommendation to use CVS, but that wouldn't work because the files are M$ Word (eww). Thanks everyone for your replies Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Sacher's Observation: Some people grow with responsibility -- others merely swell. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message