Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th December 2009, 12:18
rputnins rputnins is offline
Junior Member
 
Join Date: Sep 2009
Location: Riga, Latvia
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Skype™ to rputnins
Default ISPConfig 3 move to another server

Hello!

I have searched the forum but no real answer found.
I have server with > 20 sites running on ISPConfig 3, standart installation on Ubuntu 9.10. I have new server on which I have Ubuntu 9.10 and ISPConfig3, also the standart installation. I want to move the sites, users, settings, clients to new server. What should be the correct procedure?

I would start with copying over the /var/www folder, export/import mysql db and what next? How to make sure that users will have their accounts/passwords migrated?

Any suggestions/hints?

Thank you!
Reply With Quote
Sponsored Links
  #2  
Old 8th December 2009, 12:34
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

http://www.howtoforge.com/forums/showthread.php?t=41595
__________________
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:
rputnins (9th December 2009)
  #3  
Old 8th December 2009, 12:40
rputnins rputnins is offline
Junior Member
 
Join Date: Sep 2009
Location: Riga, Latvia
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via Skype™ to rputnins
Default

Thank you, Till, for the link! I have seen this post but there is no answer how to restore the backup to the new server. Regarding the files it is more or less clear but regarding DB? There will be already the ISPConfig db on the new server, should I drop the tables and then import db from old server?

I am kinda newbie in Ubuntu world so I would apreciate more precise info.
Thanks!
Reply With Quote
  #4  
Old 9th December 2009, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I'd create an SQL dump of the old database as follows:
http://www.howtoforge.com/faq/6_3_en.html
Then I'd drop the ISPConfig database on the new server, create an empty one with the same name and import the SQL dump as follows:
http://www.howtoforge.com/faq/6_4_en.html
__________________
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
The Following User Says Thank You to falko For This Useful Post:
rputnins (9th December 2009)
  #5  
Old 5th April 2013, 16:47
pedm pedm is offline
Junior Member
 
Join Date: Apr 2013
Posts: 1
Thanks: 2
Thanked 0 Times in 0 Posts
Default Backup entire ispconfig 3 and restore

Hi the following method worked for me:

I have Ubuntu Server 12, ISPConfig 3, Apache 2, Php5, Bind9, Postfix, Dovecot:

Backup from old server:
Code:
root@server:~# cd /

root@server:/# tar -pczf /tmp/completesystembackup.tar.gz /var/vmail /var/log /var/www /etc/cron.d /etc/apache2 /etc/bind /usr/local/ispconfig/interface/lib /usr/local/ispconfig/server/lib /etc/passwd /etc/group /etc/postfix /etc/dovecot /etc/php5

root@server:/# mysqldump -u root -pXXXXXX --all-databases > /tmp/all-database.sql
XXXXXX - change with your mysql root password.

Download the file completesystembackup.tar.gz and all-database.sql from your server.

Restore on new server:
1. Install everything from scratch :
http://www.howtoforge.com/perfect-se...ot-ispconfig-3
2. Upload completesystembackup.tar.gz and all-database.sql to your system root directory "/"
3. Follow the code lines:
Code:
root@server:~# cd /

root@server:/# tar xvfz completesystembackup.tar.gz

root@server:/# mysql -u root -pXXXXXX < /all-database.sql
XXXXXX - change with your mysql root password.
4. Reboot at the end.

If you have inadyn installed don't forget to include /etc/inadyn.conf in your backup.
Please, if I done something wrong, I accept any advise. Thanks!

This worked for me. Even the emails where restored.
Hope this will also work for you.
Good luck,
Pedro
Reply With Quote
  #6  
Old 26th April 2013, 13:50
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 13 Times in 11 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Question about the import of the DB's.
I have a about 50 db's.
Will it create the db's (with correct passwrods) if you import them like this?

Quote:
root@server:/# mysql -u root -pXXXXXX < /all-database.sql
Reply With Quote
  #7  
Old 30th April 2013, 12:44
kike kike is offline
Member
 
Join Date: May 2008
Posts: 35
Thanks: 4
Thanked 0 Times in 0 Posts
Default importing db's

Quote:
Originally Posted by skoena View Post
Question about the import of the DB's.
I have a about 50 db's.
Will it create the db's (with correct passwrods) if you import them like this?
No. When import you recreate all.
Reply With Quote
  #8  
Old 2nd August 2013, 08:22
tuxfan tuxfan is offline
Junior Member
 
Join Date: Nov 2011
Posts: 18
Thanks: 0
Thanked 4 Times in 2 Posts
Default

pedm:
Quote:
root@server:/# tar -pczf /tmp/completesystembackup.tar.gz /var/vmail /var/log /var/www /etc/cron.d /etc/apache2 /etc/bind /usr/local/ispconfig/interface/lib /usr/local/ispconfig/server/lib /etc/passwd /etc/group /etc/postfix /etc/dovecot /etc/php5
Just copying the passwd file is not a good idea. First, if you don´t copy the shadow file (that would realy mess up things) - you will have users without shadow entries. Secondary - if the new installation for example has one daemon-user that the old version laks - the daemon-user will bee lost.
Reply With Quote
  #9  
Old 2nd August 2013, 08:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Quote:
Originally Posted by tuxfan View Post
pedm:


Just copying the passwd file is not a good idea. First, if you don´t copy the shadow file (that would realy mess up things) - you will have users without shadow entries. Secondary - if the new installation for example has one daemon-user that the old version laks - the daemon-user will bee lost.
I second that. Plesae copy only the web* users from passwd and shadow and the client* groups from group and gshadow files to the new server instead if including them in the tar file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 2nd August 2013, 14:30
tuxfan tuxfan is offline
Junior Member
 
Join Date: Nov 2011
Posts: 18
Thanks: 0
Thanked 4 Times in 2 Posts
 
Default

Quote:
Originally Posted by till View Post
Plesae copy only the web* users from passwd and shadow and the client* groups from group and gshadow files to the new server instead if including them in the tar file.
I think theres is ispapps and a ispconfig users and a sshusers group to.



But what I see as the main problem with this method is the moving of the database.

If I loose the passwords during the move thats no problem with the normal web-site databases. Those can be changed or is perhaps known.

But what about those vital for Ispconfig?

I have on my system users witch i know not the password:
ispconfig
ispcsrv2
ispcsrv3
etc.

Can i find them somewhere in clear text or can i change them someway?
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
problem with upgrade to 2.2.34 brianetilley Installation/Configuration 14 11th November 2009 17:22
FTP cannot open remote folder!?! andysm849 Server Operation 23 16th October 2008 23:34
Move Clients to another ISPconfig server fpl Installation/Configuration 1 17th February 2008 13:51
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 22:53
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 12:16.


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