From owner-freebsd-newbies@FreeBSD.ORG Mon Feb 14 10:24:35 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ABC716A4CE for ; Mon, 14 Feb 2005 10:24:35 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFE0E43D3F for ; Mon, 14 Feb 2005 10:24:34 +0000 (GMT) (envelope-from remi.sandevoir@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so532721wri for ; Mon, 14 Feb 2005 02:24:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XNEsvMQRc2SA9SIC8ifEyoN0O9XdgXDBrTMbuZZ9Ov5hQnm4lMcUrmMAjgimyyp6CITPGHbWWClyUkSlENpYlF6adBHmGhdRU5YehDNaYIsPjfy4dGUj1RT8yBkZaFCizU0rQdWNcP3Te0aRkuXWJuu1h4ROXGdF25IrtAc95SM= Received: by 10.54.20.28 with SMTP id 28mr63952wrt; Mon, 14 Feb 2005 02:24:33 -0800 (PST) Received: by 10.54.20.60 with HTTP; Mon, 14 Feb 2005 02:24:33 -0800 (PST) Message-ID: <5d543255050214022442738250@mail.gmail.com> Date: Mon, 14 Feb 2005 10:24:33 +0000 From: Remi Sandevoir To: Gerard Meijer In-Reply-To: <042801c5127c$1627a9f0$9600000a@guus> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <03d201c51275$b17537d0$9600000a@guus> <5d54325505021401457171c1d8@mail.gmail.com> <5d54325505021401463a1e47d7@mail.gmail.com> <042801c5127c$1627a9f0$9600000a@guus> cc: freebsd-newbies@freebsd.org Subject: Re: real-time mirroring X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Remi Sandevoir List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 10:24:35 -0000 On Mon, 14 Feb 2005 11:01:00 +0100, Gerard Meijer wrot= e: > Hi Remi, >=20 > Does that mean that you have to run that command every time you update > something? You can run this command in a crontab every 5 min for example. When rsync find any modification of the source dir, it copy it to the destination dir automatically. #crontab -l */5 * * * * /usr/local/scripts/rsyncprod rsyncprod is my script where i use rsync and make a report=20 > On Mon, 14 Feb 2005 10:15:14 +0100, Gerard Meijer > wrote: > > Hi all, > > > > I have a question. I want to set-up a site on 3 identical FreeBSD serve= rs, > > using Round Robin to distribute the load. > > > > The site will be running some .cgi and .php scripts and when those scri= pts > > make changes to the configuration files of the sites, they need to be > > spread automatically to the other two servers. Also when files are > > uploaded to one server, I need them to automatically upload to the othe= r > > servers to. > > > > What is the best program to do this? Or am I looking at it the wrong wa= y > > and should I do it different? >=20 > I have the same system with 2 web servers and i use rsync over ssh. I > like it because you can backup the modification into a specific dir. >=20 > An example that i use : >=20 > /usr/local/bin/rsync --delete-after --backup > --backup-dir=3D/change/`date +%Y-%m-%d_%Hh%Mm` -av > /var/web/www/production/ rsyncman@geronimo:/www/ > /tmp/result >=20 > R=E9mi.