#1  
Old 16th July 2014, 14:54
electronico_nc electronico_nc is offline
Junior Member
 
Join Date: Oct 2012
Posts: 27
Thanks: 6
Thanked 1 Time in 1 Post
Default migration questions ... again

Sorry to post about this ...

2 Ubuntu 12.04 (perfect) servers (apache2, bind9, postfix, dovecot, mysql) move from old to new.
New server is ready with ISPConfig installed.

From all the readings there:

1) backup all MySQL databases, insert in new server
2) from old to new :
copy lines starting with 'web' in /etc/passwd and /etc/shadow
copy lines starting with 'client' in /etc/group and /etc/gshadow
3) directories (to copy with permissions)
/var/www/
/var/vmail/
/var/log/
/usr/local/ispconfig/server/lib/
/usr/local/ispconfig/interface/

/etc/apache2/ssl (certs have been stored there)

I wonder about:
/etc/apache2/
/etc/bind/
/etc/dovecot/
/etc/php5/
/etc/postfix/
Will files (sites-available, bind zones, ...) be created by ISPConfig ?

Anything that miss ?
(no mailman lists)

There is not enough free space on the old server to tar directories, I'll have to rsync, then shutdown old server (no more access) and change the new server IP.
So despite I made a tar.gz with /etc, I'm "a bit" afraid to forget something ...

Thanks a lot for your time.
Nicolas
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2014, 00:46
electronico_nc electronico_nc is offline
Junior Member
 
Join Date: Oct 2012
Posts: 27
Thanks: 6
Thanked 1 Time in 1 Post
Default

Sorry to bump ...
Migration has to be done in a couple of hours.
Thanks again.
Nicolas
Reply With Quote
  #3  
Old 17th July 2014, 09:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,214 Times in 4,089 Posts
Default

Quote:
I wonder about:
/etc/apache2/
/etc/bind/
/etc/dovecot/
/etc/php5/
/etc/postfix/
Will files (sites-available, bind zones, ...) be created by ISPConfig ?
Most of these files get setup by the ispconfig installer while you install ispconfig and the vhost files get createf when you run the resync in ispconfig.

Doing the file sync with rsync is fine as well, jsut ensure to preserve permissions.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 17th July 2014, 09:38
electronico_nc electronico_nc is offline
Junior Member
 
Join Date: Oct 2012
Posts: 27
Thanks: 6
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till View Post
Most of these files get setup by the ispconfig installer while you install ispconfig and the vhost files get createf when you run the resync in ispconfig.
Well I haven't run resync from ISPConfig, so that's probably why (not seeing any zone created in /etc/bind) I have transfered theses folders from old to new:
/etc/apache2/
/etc/bind/
/etc/dovecot/
/etc/php5/
/etc/postfix/
/etc/ssl/
/etc/pure-ftpd/
/var/backup/

Apache2 refused to start because of a missing geoip module (transfered from old, then OK)

I had some troubles with automysqlbackup as it uses /etc/mysql/debian.cnf to access MySQL and the 'mysql' database was the one from old server, so debian-sys-maint password was not good.
So:
/etc/mysql/debian.cnf
is to add to directories to backup if a full (--all) mysql dump is used.

Nicolas
Reply With Quote
  #5  
Old 17th July 2014, 09:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,446
Thanks: 813
Thanked 5,214 Times in 4,089 Posts
 
Default

Quote:
Well I haven't run resync from ISPConfig, so that's probably why (not seeing any zone created in /etc/bind) I have transfered theses folders from old to new:
/etc/apache2/
/etc/bind/
/etc/dovecot/
/etc/php5/
/etc/postfix/
/etc/ssl/
/etc/pure-ftpd/
/var/backup/
Many of thes efiles contain details that are unique for ach server setup e.g. the new password of the ispconfig user, thats why they should not be transferred. To fix that, download the ispconfig tar.gz file, unpack it and run the update.php script in the install folder and choose to reconfigure services during update.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
electronico_nc (17th July 2014)
Reply

Bookmarks

Tags
ispconfig3, migration, ubuntu

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
ISPConfig 3 Migration Experience - CentOS 6.5 Unfaiir Tips/Tricks/Mods 1 8th May 2014 09:37
Cluster migration and adding additional features stefanm ISPConfig 3 Priority Support 5 2nd September 2013 10:18
Migration from Lotus Domino to Zimbra debapriyabiswas Server Operation 2 3rd February 2012 18:48
Migration Questions Rockdrala Installation/Configuration 13 26th December 2007 13:51
Migration: Sites from one to the other server (ISP Config 2.2.6 to 2.2.18) eric.balk General 1 26th November 2007 08:28


All times are GMT +2. The time now is 22:29.


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