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, 22: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, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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, 23: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, 18:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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, 21: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, 14:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 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 20th March 2009, 20:59
nabcoengineer nabcoengineer is offline
Junior Member
 
Join Date: Mar 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default It works in a way

Well I followed your instructions, falko, and I have a backup running. All I have to do now is change the interfaces file and the hosts file to reflect the IP address on the backup machine, restart the networking and bam! it works. I can make a backup every day with cron but what I really want is a continuous mirror. I will let you all know if I figure it out.
Thanks for the help.
Reply With Quote
  #8  
Old 21st March 2009, 22:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I'd set up a cron job for rsync that runs every 5 minutes. rsync will copy only files that are new, have been modified or deleted, so this will not cause much traffic.
__________________
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 8th April 2009, 10:52
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Thumbs up

nabcoengineer:

Plz if you have the time, make a HowTo document on how you did it.

tanx, rgds
Marcus
Reply With Quote
  #10  
Old 8th April 2009, 14:30
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
 
Thumbs up

Nice, do you have any script(s) to share

how do you do whit /etcpasswd and /etc/shadow files in rsync ?
i got error it tells med that the file is in use when try to sync over these files.

//Marcus

Is this what you talking about http://www.innodb.com/hot-backup/ ?

Last edited by trexen; 8th April 2009 at 14:49.
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 15:42
where are the error logs for ISPConfig? claudioimai Installation/Configuration 13 25th November 2008 12:21
Error after upgrade mbascombe Installation/Configuration 13 14th April 2008 01:48
Help. Apache don't start payne Server Operation 3 17th August 2007 16:57
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07


All times are GMT +2. The time now is 07:08.


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