From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 11:47:07 2004 Return-Path: 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 0688416A4CE for ; Sun, 14 Mar 2004 11:47:07 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 80E1443D1F for ; Sun, 14 Mar 2004 11:47:06 -0800 (PST) (envelope-from freebsd@stevenfettig.com) Received: (qmail 14906 invoked from network); 14 Mar 2004 19:47:05 -0000 Received: from 66-168-50-57.jvl.wi.charter.com (HELO stevenfettig.com) (66.168.50.57) by relay.pair.com with SMTP; 14 Mar 2004 19:47:05 -0000 X-pair-Authenticated: 66.168.50.57 Message-ID: <4054B6A3.7080704@stevenfettig.com> Date: Sun, 14 Mar 2004 13:46:43 -0600 From: "Steven N. Fettig" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20040213 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Two-way Sync of Directories - how? (rsync?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 19:47:07 -0000 I have two workstations I use (one at home and one at work) connected via a private DSL link that each have the directories /home/me. I want to run a cron job to sync the directories (bi-directionally). Rsync seems to work only in one direction (I know I could set up the script on both machines), but I wanted to see if I could run the script on one machine and simply copy new files over to the lacking machine or update files via checksums (where a file has been updated on one machine and I want that updated file to be copied over the old file on the other machine). I am not worried about the case where I might update a given file on both machines at the same time - it doesn't happen. Any advice and scripts that you use to accomplish this? Thanks, Steve Fettig