Date: Mon, 14 Feb 2005 10:24:33 +0000 From: Remi Sandevoir <remi.sandevoir@gmail.com> To: Gerard Meijer <gmeijer@palmweb.nl> Cc: freebsd-newbies@freebsd.org Subject: Re: real-time mirroring Message-ID: <5d543255050214022442738250@mail.gmail.com> In-Reply-To: <042801c5127c$1627a9f0$9600000a@guus> References: <03d201c51275$b17537d0$9600000a@guus> <5d54325505021401457171c1d8@mail.gmail.com> <5d54325505021401463a1e47d7@mail.gmail.com> <042801c5127c$1627a9f0$9600000a@guus>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Feb 2005 11:01:00 +0100, Gerard Meijer <gmeijer@palmweb.nl> 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 <gmeijer@palmweb.nl> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5d543255050214022442738250>