From owner-freebsd-questions Thu Feb 6 4:10:57 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80B2437B401 for ; Thu, 6 Feb 2003 04:10:55 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 034F843F75 for ; Thu, 6 Feb 2003 04:10:44 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18gkrT-0000Uz-00 for freebsd-questions@freebsd.org; Thu, 06 Feb 2003 12:10:35 +0000 Date: Thu, 6 Feb 2003 12:10:35 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: Creating a Mirror of my own site Message-ID: <20030206121035.GA1764@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Scanner: exiscan *18gkrT-0000Uz-00*wmlySfmUZPg* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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