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
  #11  
Old 1st December 2012, 14:15
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Can somebody make a post explaining all the steps needed to copy all contents from 1 server to another server? (files, db's, changes to ispconfig files eg passwords etc etc)

Can somebody make a "howto"?
Reply With Quote
Sponsored Links
  #12  
Old 18th December 2012, 19:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,011
Thanks: 826
Thanked 5,378 Times in 4,225 Posts
Default

Here the steps:


1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 6 Users Say Thank You to till For This Useful Post:
DaRKNeSS666NL (23rd December 2012), Eleven Cool (5th February 2013), skoena (19th December 2012), stef157 (23rd March 2013), stefanm (1st January 2013), Turbanator (30th April 2013)
  #13  
Old 19th December 2012, 10:40
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

Thank you soo much Till, will try this asap!
Reply With Quote
  #14  
Old 23rd December 2012, 15:13
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
Here the steps:


1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.
Till Thanks for that, going to try it just yet again...
__________________
Updating my server to Debian Squeeze, so here I go again...
Reply With Quote
  #15  
Old 24th December 2012, 12:59
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

I rsynced /etc from the old to the new server.
But I think I should not have done that. Server is not reachable and I can't reboot anymore...
Reply With Quote
  #16  
Old 31st December 2012, 14:13
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
Default

I have some additional questions.

1) How to get the backupped files to the new server and how to unpack them?
Why backup /etc? If you restore on a new server you will get problems?

2) Should I use
Code:
mysqldump --opt --user=root --password=xxxxxxxx --all-databases | gzip > mysql_backup.sql.gz
to backup db's? How to get this file to new server and how to import them back on the new server?

Tnx, Rudolf.



Quote:
Originally Posted by till View Post
Here the steps:


1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.
Reply With Quote
  #17  
Old 2nd January 2013, 06:37
hellkat hellkat is offline
HowtoForge Supporter
 
Join Date: Nov 2010
Location: Spokane, Washington
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Skype™ to hellkat
Default

If anyone's interested I'd be happy to document all the files that are installed/modified by ISPConfig 3.0.5 on Debian, I might be prepared to document for other linux distros aswell if enough people want it.
Reply With Quote
  #18  
Old 2nd January 2013, 15:13
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
Here the steps:


1) Backup the following directories on the old server: /var/www, /var/vmail and /etc, ensure that you preserve permissions e.g. with "tar pczf backupfile.tar.gz /directory/to/backup".
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.
6) restore the contents of /var/vmail and /var/www on the new server.
7) restore the databases of the clients
8) Login to ispconfig, go to tools > resync, check all checkboxes and click on start and wait a few minutes to let ispconfig write missing config files.

Just some extra questions regarding this...
Quote:
Originally Posted by till View Post
Here the steps:
2) backup all mysql databases.
3) install ispconfig on the new server.
4) backup the new dbispconfig database and empty the database afterwards. Then restore the database of the old server.
Here is mentioned to back up ALL mysql databases so with client databases I guess. But in line 7 there is to restore client databases. So now I am guessing to not include the client databases. Must I backup only ISPConfig database in step 2 or indeed all of them?

Quote:
Originally Posted by till View Post
Here the steps:
1) Backup the following directories on the old server: /etc
What must I do whit this one? or must I use this file to complete step 5.
So extract it and edit the files from it?

TIA, think I will need some more help by getting it right but, still am going for it.......
__________________
Updating my server to Debian Squeeze, so here I go again...
Reply With Quote
  #19  
Old 2nd January 2013, 18:49
hellkat hellkat is offline
HowtoForge Supporter
 
Join Date: Nov 2010
Location: Spokane, Washington
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via Skype™ to hellkat
Default

Quote:
Originally Posted by DaRKNeSS666NL View Post
Just some extra questions regarding this...


Here is mentioned to back up ALL mysql databases so with client databases I guess. But in line 7 there is to restore client databases. So now I am guessing to not include the client databases. Must I backup only ISPConfig database in step 2 or indeed all of them?



What must I do whit this one? or must I use this file to complete step 5.
So extract it and edit the files from it?

TIA, think I will need some more help by getting it right but, still am going for it.......
You need to back up and restore the all the mysql stuff, unless you want to lose the client databases. I forget if you need to do this for the mysql database itself, but I'm sure till will fill in that blank.

For step 5, as till said:

5) copy all users and groups of the websites (users are web1, web2, ... , groups are client1, client2, ..., etc.) from the files /etc/passwd, /etc/shadow, /etc/group and /etc/gshadow from the old server to the new server. Copy only the lines of the users and groups, not the whole files! and make a backup of the files before you change them.

All the other files will be remade by a) the fresh install of ispconfig and b) the resync.
Reply With Quote
  #20  
Old 7th January 2013, 14:11
skoena skoena is offline
Senior Member
 
Join Date: Sep 2009
Location: Emmen, Netherlands
Posts: 421
Thanks: 77
Thanked 14 Times in 12 Posts
Send a message via MSN to skoena Send a message via Skype™ to skoena
 
Default

I have some additional questions.

1) How to get the backupped files to the new server and how to unpack them?
Please post the correct commands to use.
(Why backup /etc? If you restore on a new server you will get problems?)

2) Should I use
Code:
mysqldump --opt --user=root --password=xxxxxxxx --all-databases | gzip > mysql_backup.sql.gz
to backup db's? How to get this file to new server and how to import them back on the new server?

For me as noob it's not always clear how to get things done...

Tnx, Rudolf.
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
500 internal error after upgrade abintipl Installation/Configuration 9 18th July 2012 12:51
ISPConfig 3 Installation - Postfix queue stuck andrew971218 Installation/Configuration 21 15th July 2011 14:42
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


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


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