From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 16:40:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 CA44B16A4DA for ; Fri, 18 Aug 2006 16:40:43 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [208.44.26.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E62543D53 for ; Fri, 18 Aug 2006 16:40:42 +0000 (GMT) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [208.44.26.213]) (authenticated bits=0) by mail.jellico.com (8.12.6/8.12.6) with ESMTP id k7IGlOuH014385 for ; Fri, 18 Aug 2006 12:47:24 -0400 Message-ID: <004501c6c2e5$01603760$d51a2cd0@lisac> From: "Lisa Casey" To: Date: Fri, 18 Aug 2006 12:40:24 -0400 Organization: Netlink 2000, Inc. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1 Subject: rsync on Freebsd 5.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2006 16:40:43 -0000 Hi, I am trying to transfer all files in /var/mail from one Freebsd 5.3 machine (oldfreebsd.com) to another (newfreebsd.com). I decided to use rsync for this since it would preserve ownership, permissions, etc. I made sure rsync was installed on both machines. Neither machine had an /etc/rsyncd.conf or /etc/rsyncd.motd file. On newfreebsd.com I created /etc/rsyncd.conf thusly: motd file = /etc/rsyncd.motd max connections = 1 hosts allow = 208.44.xx.xx (The IP address is that of oldfreebsd.com) On newfreebsd.com, I created rsyncd.motd with the words Authorized Users Only in it. as a test, I'm just trying to rsync /var/mail/lisa from oldfreebsd.com to newfreebsd.com. When that works I'll do all of /var/mail/ on oldfreebsd.com I cd /var/mail, then type: rsync lisa newfreebsd.com:/var/mail/ and get this: connect to host newfreebsd.com port 22: Connection refused rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(348) Anyone know what might be wrong? Or can anyone suggest a better way of moving these mail boxes? Thanks, Lisa Casey