From owner-freebsd-questions Fri Aug 30 14:21: 5 2002 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 DFCD837B400 for ; Fri, 30 Aug 2002 14:21:01 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B1E43E42 for ; Fri, 30 Aug 2002 14:21:01 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g7ULKtb06444; Fri, 30 Aug 2002 17:20:55 -0400 (EDT) From: Jerry McAllister Message-Id: <200208302120.g7ULKtb06444@clunix.cl.msu.edu> Subject: Re: How do I replicate two apache server To: ntusnet@yahoo.com (David Ouyang) Date: Fri, 30 Aug 2002 17:20:55 -0400 (EDT) Cc: unixtools@hotmail.com (Unix Tools), questions@FreeBSD.ORG In-Reply-To: <20020830190045.98378.qmail@web20010.mail.yahoo.com> from "David Ouyang" at Aug 30, 2002 12:00:45 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > I went to make the two server indentical, config file > and data, (in real time). > for example: > I need the two server have the same files at > /usr/local/apache/conf and /var/www/html. I presume you mean on two separate machine. Sure. Just tar up those directories on the one you are doing the evelopment on and untar it on the other. cd /usr/local/apache/conf tar cvf ../conf.tar * cd /var/www/html tar cvf ../html.tar * ftp or scp or zip disk transfer the conf.tar and html. tar files to the other machine. cd /usr/local/apache/conf tar xvf ../conf.tar cd /usr/www/html tar xvf ../html.tar The names/paths of the tar files will depend on where you want to put them. If you want to have it constantly up-to-date on the fly you would have to try something else. ////jerry > > can I do that. > > Thank you very much > > > --- Unix Tools wrote: > > what do you want to replicate > > The config ??? > > > > ----- Original Message ----- > > From: "David Ouyang" > > To: "Question FreeBSD.ORG" > > Sent: Tuesday, August 27, 2002 11:08 PM > > Subject: How do I replicate two apache server > > > > > > > I have two idencal apache server need to replicate > > > eachother, does anybody know how to do this? > > > > > > thanks in advance > > > > > > David > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Finance - Get real-time stock quotes > > > http://finance.yahoo.com > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body > > of the message > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message