Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 14th July 2009, 02:41
patrick3853 patrick3853 is offline
Join Date: Dec 2008
Posts: 30
Thanks: 3
Thanked 7 Times in 3 Posts
Default Automatic backup of ISPConfig server

Hi all,

I'm running a web/email server using ispconfig2 on ubuntu 8.10 (server A). I followed the perfect server guide here. I have another server running ubuntu 8.04 (server B) that i set up using the same guide. I want server B to be an exact mirror of server A so that if server A crashes, I can just plug up B.

What I need to know is exactly what needs to be copied from A to B. Looking at this post on migrating servers, I think the following will work:

On server B:
  1. Use rsync to sync /var/www on B with /var/www on A.
  2. Use rsync to copy Vhosts_ispconfig.conf, /etc/postfix/local-host-names, /etc/postfix/virtusertable, named.conf, and all the pri.* zone files from server A to B.
  3. Use perl to replace server A's local ip address and fqdn with server B's local ip and fqdn in all the files copied over from previous step.
  4. Use mysqldump and rysnc to sync db on server A with db on B.

Now here is where i get stuck. The users and groups in /etc/shadow, /etc/passwd, and /etc/group need to be updated on server B. Can I copy these files from server A to B, or is that going to cause problems on server B? The idea is to write a bash script that does everything and is called from a crontab, so I can't manually open these files and add the lines that don't exist on server B.

Thanks in advance for any help!
Reply With Quote
Sponsored Links
Old 14th July 2009, 09:31
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts

The users and groups in /etc/shadow, /etc/passwd, and /etc/group need to be updated on server B. Can I copy these files from server A to B, or is that going to cause problems on server B?
copying of these files will only work if the servers are 100% identical. The better solution is to copy over only the users that had been created by ispconfig, e.g. by user prefix or userid.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote


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
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Connection dropped by IMAP server gublym Server Operation 5 23rd January 2009 10:47
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 11:07
Webmail Relay Error palkat General 17 23rd April 2006 19:12
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16

All times are GMT +2. The time now is 06:56.

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