PDA

View Full Version : Moving all customers from one server to another..


Ryanmt
16th January 2011, 17:23
Hi all,

Im currently tasked with moving all the stuff off my old webserver (ispconfig and all) onto a new webserver.

I have this post to hand, http://www.howtoforge.com/forums/showthread.php?t=2717 by falko

Old : Ubuntu 8.04, ISPconfig 2

New : Centos 5.5 ISpconfig 2 <- fresh install!

Im aiming to move my customers over with minimal downtime, both servers are in the same network so can just have the IPs switched over. The server currently has 2 ips and operates as its own DNS server

Im considering moving the core of the /var/www folder over using scp and trying to preserve the permissions. Or maybe use rsync. Im open to suggestions to keep the most amount of data/permissions in tacked. The advantage of using rsync is i can just run it again right at the switchover time to ensure everything is upto date, the downsides is it seems not to have permissions for certain folders and things like .foward .no_reply etc

Also important is the mysql, both from the ispconfig db and the sites databases. I could setup 1 way replication which would be fairly easy and ensure the sql database is maintained right up to the change over is that feesable??

As for email my plan is to just stop postfix so the server will not accept mail during the ip changeover, that way mail wont be trapped on the old server.

Thats all i can think of that might cause an issue, I only have one chance to get it right so any advice, tips etc would be very much appreciated.

Thanks
Ryan

falko
17th January 2011, 13:58
Old : Ubuntu 8.04, ISPconfig 2

New : Centos 5.5 ISpconfig 2 <- fresh install!First, you might run into some problems if you use a different distribution because of different paths, etc.

Im aiming to move my customers over with minimal downtime, both servers are in the same network so can just have the IPs switched over. The server currently has 2 ips and operates as its own DNS server

the downsides is it seems not to have permissions for certain folders and things like .foward .no_reply etcDo you run rsync as root?

Also important is the mysql, both from the ispconfig db and the sites databases. I could setup 1 way replication which would be fairly easy and ensure the sql database is maintained right up to the change over is that feesable??Yes, you can do that with replication.

As for email my plan is to just stop postfix so the server will not accept mail during the ip changeover, that way mail wont be trapped on the old server.
IF you want to transfer the old emails to the new server as well, you can do this with imapsync: http://www.howtoforge.com/how-to-migrate-mailboxes-between-imap-servers-with-imapsync

Ryanmt
19th January 2011, 01:14
Thanks falko,

I i didnt run it as root - roots disabled, i had created an rsync user speciflcally for backing up to my home server. I guess for the changeover period i can enable root!

Will readup on imap sync. :D