From owner-freebsd-ports Sat Apr 28 12:39:44 2001 Delivered-To: freebsd-ports@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 726C037B423 for ; Sat, 28 Apr 2001 12:39:39 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f3SJdMD16038; Sat, 28 Apr 2001 14:39:22 -0500 (CDT) (envelope-from dan) Date: Sat, 28 Apr 2001 14:39:22 -0500 From: Dan Nelson To: Donald Burr of Borg Cc: FreeBSD Ports Subject: Re: HELP: need Two-way file synchronization tool like MS-Windows "Briefcase" Message-ID: <20010428143922.A5802@dan.emsphone.com> References: <20010427152135.J76666-100000@borg-cube.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <20010427152135.J76666-100000@borg-cube.com>; from "Donald Burr of Borg" on Fri Apr 27 15:30:25 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the last episode (Apr 27), Donald Burr of Borg said: > [note: please followup to freebsd-ports. Thanks] > > I'm looking for a tool similar to the Microsoft Windows "Briefcase" tool, > that will allow me to keep files synchronized between my desktop and > laptop computers. > > Someone suggested I take a look at the "rsync" program. I looked at it, > but it doesn't seem to me to be the ideal program for my needs. for one > thing, the synchronization (from what I understand) is only one way. I.e. > central server ---> remote backup copy, NOT the other way around. Also, > it's a pretty large package, and is probably overkill for my needs as > well. rsync is only a 200k executable; I doubt you could find anything smaller... To get 2-way synchronization with rsync, you run it twice, once for each direction: rsync -auvz ~/ othermachine: rsync -auvz othermachine:/ ~ Since rsync doesn't keep a state file, though, it can't handle file deletion (it will simply replace the deleted file from the other server). You have to manually delete the file from both sides. You could also run rsync with the --existing switch, which will make it sync only files that exist on both sides (which means you have to manually copy the file to your laptop so rsync can sync it later). -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message