Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th March 2009, 21:32
nabcoengineer nabcoengineer is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up a hot backup machine

Hi all. I hope this question has not been asked before.
I have a WEB server running on Ubuntu 8.1 server with ISPConfig, Mysql, PHP5 and I want to set up a separate machine as a hot backup so I can just unplug the main machine, change the IP on the backup machine and get the web sites back up and running in case of a catastrophic failure of the main system. I do have a mirror and a nightly backup of databases and web sites but this does not help if the machine itself huffs.
My question is this, what files and directories do I have to rsync to the backup to make everything work. I figure I need all of the /var/www stuff and all the mysql databases and the /root/ispconfig stuff but what else is there. I have tried so much now that I have to rebuild the backup machine from scratch.
Or... Is there an automated program that will handle this. I can connect the two machines together with a crossover ethernet cable cable to speed things up and not load down the network so it does not matter how much I have to copy.
Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 14th March 2009, 13:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

This should give xou the idea what files you have to sync: http://www.howtoforge.com/forums/sho...ving+ispconfig
For the MySQL database, I'd set up database replication.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th March 2009, 22:08
nabcoengineer nabcoengineer is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks but

Thanks for the link but that is not exactly what I had in mind.
I want to, somehow, create a 'hot' backup that is always kept up to date with the master server. I guess what I really want is a machine mirror.
Reply With Quote
  #4  
Old 19th March 2009, 17:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

That will be difficult because of the different IP addresses. The IP addresses are used in some configuration files (e.g. the Apache configuration), so you'd have to somehow change the IP addresses on the mirror, and then there's the problem of the DNS records...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 19th March 2009, 20:29
nabcoengineer nabcoengineer is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How about this idea

If I had 2 nics in the both machines, set one up as 192.168.1.181 and the other as 24.172.***.*** and on the other machine I set the first nic up as 192.168.1.182 and the second the same as the first machine. I connect the two machines via a flip cable on the 192.168 cards and do the copying through the local cards. That way all I would have to do is swap the cable on the external card from the first machine to the second machine if the first machine went down and the IP would be the same.
errrr, I think that would work??
Reply With Quote
  #6  
Old 20th March 2009, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

That could work.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th April 2009, 14:19
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Smile MySQL repliacation

i try to figure out how replication works, in http://www.howtoforge.com/mysql_database_replication tuturial it tells me to use exempeldb in my.cnf "binlog-do-db=exampledb" are you referring to ispconfig db that you specify in the installation, default is "dbispconfig" is this correct ?

And i also wonder if i specify dbispconfig in my.cnf does the replication replicate all db i have, exempel web1db1 ?

regards
//Marcus
Reply With Quote
  #8  
Old 1st May 2009, 17:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by trexen View Post
default is "dbispconfig" is this correct ?
If you want to replicate the ISPConfig database, then yes.

Quote:
Originally Posted by trexen View Post
And i also wonder if i specify dbispconfig in my.cnf does the replication replicate all db i have, exempel web1db1 ?
No, it will just replicate the ISPConfig db.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 1st May 2009, 17:20
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Thumbs up

Ok, then i need to make a new entry for every new DB customer create ore can this be done in another way to replicate all the DB, som i don´t need to specify every new entry ?

rgds
//Marcus
Reply With Quote
  #10  
Old 2nd May 2009, 20:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You need one entry per database.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
backup, hot, live

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
where are the error logs for ISPConfig? claudioimai Installation/Configuration 13 25th November 2008 11:21
Error after upgrade mbascombe Installation/Configuration 13 14th April 2008 00:48
Help. Apache don't start payne Server Operation 3 17th August 2007 15:57
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07


All times are GMT +2. The time now is 00:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.