From owner-freebsd-isp Wed Sep 11 5:52: 0 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4AE437B400 for ; Wed, 11 Sep 2002 05:51:57 -0700 (PDT) Received: from pop3.psconsult.nl (ps226.psconsult.nl [193.67.147.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 477D643E42 for ; Wed, 11 Sep 2002 05:51:50 -0700 (PDT) (envelope-from paul@pop3.psconsult.nl) Received: (from paul@localhost) by pop3.psconsult.nl (8.9.2/8.9.2) id OAA74620; Wed, 11 Sep 2002 14:51:45 +0200 (CEST) (envelope-from paul) Date: Wed, 11 Sep 2002 14:51:45 +0200 From: Paul Schenkeveld To: Arie.Gerszt@student.unisg.ch Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Message-ID: <20020911145145.A74516@psconsult.nl> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from Arie.Gerszt@student.unisg.ch on Wed, Sep 11, 2002 at 02:35:28PM +0200 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Sep 11, 2002 at 02:35:28PM +0200, Arie.Gerszt@student.unisg.ch wrote: > Hi List > > We have 2 servers working in the internet and would like to have all user > webserver > data (e.g. /usr/www/*) mirrored to our backup server, so in case of the > worst case > we are live running in minutes. > > as i understand rsync over ssh could be used. note that the server are at 2 > completely > different location and only connection is through internet (no vpn, > dedicated line etc) > > how do you do such things? With rsync it's easy: server2$ rsync -ra --delete server1:/usr/www /usr Notes: 1. recent versions of rsync automatically use ssh, older versions use rsh by default, add '-e ssh' to use ssh (but you don't use old versions, do you?) 2. Be sure to use /usr as the last argument, with /usr/www as the last argument you end up with a copy of /usr/www in the directory /usr/www/www 3. You could tweak ssh by adding compression or select another encryption algorithm to speed things up. For example: server2$ rsync -ra --delete -e "ssh -C -c blowfish" server1:/usr/www /usr can save some time, provided your CPU is reasonably fast and your Internet connection is not that fast. Even better, put compression and encryption settings in your .ssh/config file. Regards, Paul Schenkeveld, Consultant PSconsult ICT Services BV > thanks > > arie > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message