From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 20:26:35 2005 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 288C116A4CE for ; Sun, 3 Apr 2005 20:26:35 +0000 (GMT) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id C04C843D46 for ; Sun, 3 Apr 2005 20:26:33 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 16102 invoked by uid 510); 3 Apr 2005 21:28:16 +0100 Received: from 84.92.24.252 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.83/710. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(84.92.24.252):SA:0(-1.7/5.0):. Processed in 1.900952 secs); 03 Apr 2005 20:28:16 -0000 X-Spam-Status: No, hits=-1.7 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(84.92.24.252):SA:0(-1.7/5.0):. Processed in 1.900952 secs Process 16095) Received: from mail.bathnetworks.com (HELO ?84.92.24.252?) (bsd@bathnetworks.com@84.92.24.252) by lmail.bathnetworks.co.uk with SMTP; 3 Apr 2005 21:28:13 +0100 From: Robert Slade To: "freebsd-questions@freebsd.org" Content-Type: text/plain Message-Id: <1112560093.15815.19.camel@lmail.bathnetworks.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 03 Apr 2005 21:28:13 +0100 Content-Transfer-Encoding: 7bit Subject: Rsync Setup 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, 03 Apr 2005 20:26:35 -0000 Hi, I'm trying to get my brain around rsync. What I am trying to do is synchronise 2 directories on different machines. I have an rsync server running on one machine and running it as a client on the other. I have been able to get this setup to work. However, it just syncs the directories on machine A with those on B. If B has a later version of the file on A it gets overwritten with the older version from A. I have done a fair bit of reading on rsync which leads me to believe that it will only work one way. Is this correct? If so, is there any other way of synchronising the 2 directories so that they end up with the latest version of the file(s) from either machine. Rob