Date: Thu, 6 Feb 2003 12:10:35 +0000 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: Creating a Mirror of my own site Message-ID: <20030206121035.GA1764@catflap.home.slightlystrange.org> In-Reply-To: <AHEIILGEKKDBDBDILICLEEHNCBAA.matt@mattwinslow.com> References: <AHEIILGEKKDBDBDILICLEEHNCBAA.matt@mattwinslow.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 05, 2003 at 11:34:56PM -0500, Matt Winslow wrote: > I'm trying to run dual servers (for redundancy...and just to learn), and > need help on easy ways to maintain a second server, that will perfectly > mirror the data on the first. Is using rsync running every minute a good > option? Are there better ones? Also, how do I set the second server to use > the passwords/permissons from the main server. I use rsync for the same purpose (and to make local backups of the data on the web servers). How busy do you expect the boxes to be? I'm not sure running it every minute is desirable, but if they are not particularly heavily loaded, it should be fine. Be prepared to tweak, though, until you find the right balance between performance and synchronous data. As for passwords and permissions, I guess you are talking about passwords etc for access to .htaccess-protected areas? If so, make sure your passwd database (the apache-specific one, not the /etc/passwd!) is included in the rsync runs. rsync will allow you to preserve file ownership and permissions during the transfer, so this shouldn't be a worry - just read the man page and select the appropriate options. Depending on how sophisticated you want to be, you can run the rsync in job in pull mode from the slave server, so it can restart the web server if you change its config on the master machine. The possibilities are endless, though. Play with it and have fun! Dan > Thanks for your help in advance. Links to resources are appreciated, so I > can learn. > > Matt Winslow > matt@mattwinslow.com -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030206121035.GA1764>