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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th June 2012, 17:02
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default Moving ispconfig3 on a new server

Hello,

Actually I have two servers, one for my wesite and another for the mails.

In fact, I would like to transfert all the data from these servers to my new one.

Can I do that or I have two move to two differents servers?

All of my servers are equiped with linux and I install ISPconfig3 on the new server.

Here is my approach to move the data from the web server to the new one:


First I take my www folder :

tar -pczf www.tar.gz /var/www/

Then I save all the databases :
mysqldump -h localhost -uroot -p -c --add-drop-table --add-locks --all --quick --lock-tables --all-databases > sqldump.sql

I also take the passwd, shadow and group files.

And then I copy all these informations in my new server.

For information, the root password and rights will be the same.

Is this a good approach or I miss something?



Here is my approach to move the data from the mail server to the new one:


tar -pczf www.tar.gz /var/vmail/

mysqldump -h localhost -uroot -p -c --add-drop-table --add-locks --all --quick --lock-tables --all-databases > sqldumpmails.sql



Somebody can help me on that?


Thanks a lot!!
Reply With Quote
Sponsored Links
  #2  
Old 25th June 2012, 16:27
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default Moving ispconfig3 on a new server

Nobody can help me?
Reply With Quote
  #3  
Old 25th June 2012, 17:07
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Looks ok ..

Install ISPC3 on the new server. make a db dump of all databases, import them on the new one (don't forget db: mysql, it contains the users)

copy /var/www and /var/vmail to the new system, copy /etc/passwd and shadow entries. done.

make sure the dbispconfig user password is the same, else services like postfix cannot talk to your database. ;-)
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #4  
Old 25th June 2012, 17:14
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default Moving ispconfig3 on a new server

Thank you for reply!

My problem is that the databases on the two servers are not the same. For example this is not the same users. So if I dump the databases on my old servers to the new the last one will erase the first one.

I hope you understand my problem.

Thanks
Reply With Quote
  #5  
Old 25th June 2012, 17:20
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

Oke, so you already have websites running on the new server, bad idea!

Now it just became a "merge" which is more work.

Better merge to the server which already has the most data (since the merge needs to be done manually in the ISPC3 webgui). Then you have one server with all data again which you can easily move to a new server again.

So create the users / sites / databases and everything through the ispconfig web interface and then copy / dump the data to each dir / database and set user permissions correctly.
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
  #6  
Old 13th August 2012, 12:35
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 428
Thanks: 78
Thanked 17 Times in 14 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Quote:
Originally Posted by Mark_NL View Post
Looks ok ..

Install ISPC3 on the new server. make a db dump of all databases, import them on the new one (don't forget db: mysql, it contains the users)

copy /var/www and /var/vmail to the new system, copy /etc/passwd and shadow entries. done.

make sure the dbispconfig user password is the same, else services like postfix cannot talk to your database. ;-)
Mark,
How to check if the dbispconfig user password is the same?
How to copy shadow entries?
Reply With Quote
  #7  
Old 13th August 2012, 14:46
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Quote:
Originally Posted by skoena View Post
Mark,
How to check if the dbispconfig user password is the same?
How to copy shadow entries?
run this command on both servers:
Code:
grep "db_password'] =" /usr/local/ispconfig/server/lib/config.inc.php
shadow file is "/etc/shadow". You can only read/copy it when you're user root.
__________________
Real men don't backup... Real men cry!

http://www.e-rave.nl/
Reply With Quote
Reply

Bookmarks

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
Local mail server - final touch Alexhor Installation/Configuration 4 12th April 2012 23:33
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 05:24
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 14:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 17:11


All times are GMT +2. The time now is 01:09.


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