From owner-freebsd-questions@FreeBSD.ORG Fri Aug 18 18:55:18 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 B02FF16A4DE for ; Fri, 18 Aug 2006 18:55:18 +0000 (UTC) (envelope-from lars+lister.freebsd@adventuras.no) Received: from mail.adventuras.no (mail.adventuras.no [194.63.250.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EBB343D46 for ; Fri, 18 Aug 2006 18:55:17 +0000 (GMT) (envelope-from lars+lister.freebsd@adventuras.no) Received: from [84.209.202.7] (hjem [84.209.202.7]) (authenticated bits=0) by mail.adventuras.no (8.12.10/8.12.10) with ESMTP id k7IIquWw007805 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 18 Aug 2006 20:52:58 +0200 Message-ID: <44E60C88.1020703@adventuras.no> Date: Fri, 18 Aug 2006 20:52:56 +0200 From: Lars Kristiansen User-Agent: Thunderbird 1.5.0.5 (X11/20060730) MIME-Version: 1.0 To: Lisa Casey References: <004501c6c2e5$01603760$d51a2cd0@lisac> In-Reply-To: <004501c6c2e5$01603760$d51a2cd0@lisac> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Adventuras-MailScanner-Information: Please contact the ISP for more information X-Adventuras: du kan filtrere etter AdvSpamScore over 5-10 X-Adventuras-SpamCheck: not spam, SpamAssassin (score=-4.399, required 6, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-MailScanner-From: lars+lister.freebsd@adventuras.no X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: 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 18:55:18 -0000 Lisa Casey skrev: > 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? Hi! About rsync: 1. Are you trying to do rsync over ssh as root? Freebsd default is to refuse root to login over ssh. 2. Your command syntax is for rsync over ssh. No need for server. You only need rsync installed in path on both sides. You may want to consider some options like -navP, see man rsync. 3. The configuration files are for setting up rsync as server. That uses port 873. And may provide anonymous login. To connect to see what modules are shared from a server: rsync example.com:: -- Regard from Lars > > Thanks, > > Lisa Casey > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"