Date: Wed, 11 Sep 2002 14:51:45 +0200 From: Paul Schenkeveld <fb-isp@psconsult.nl> To: Arie.Gerszt@student.unisg.ch Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Message-ID: <20020911145145.A74516@psconsult.nl> In-Reply-To: <OF7A5D2AB3.5A858652-ONC1256C31.00452637@unisg.ch>; from Arie.Gerszt@student.unisg.ch on Wed, Sep 11, 2002 at 02:35:28PM %2B0200 References: <OF7A5D2AB3.5A858652-ONC1256C31.00452637@unisg.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020911145145.A74516>
