View Single Post
  #14  
Old 9th August 2011, 09:59
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

You need to check the following files on the old server:
/etc/passwd
/etc/group

Those contain the web users and groups, you need to copy those to the other server.
you can simply copy and paste the "web*" lines and paste them into /etc/passwd on the new server.
The same for /etc/group but then the "client*" lines.

Next step is to copy all the mailboxes and websites to the new server.
Tar the dirs and then copy the tarballs to the other server and extract them.

(I'm assuming you're logged in as root)

To tar the websites:
Code:
tar -pczf websites.tar.gz /var/www/
To tar the mailboxes:
Code:
tar -pczf mailboxes.tar.gz /var/vmail/

Copy them to your other server:
Code:
scp websites.tar.gz newserver:/
scp mailboxes.tar.gz newserver:/
log into your new server:
Code:
cd /
tar -zxfv websites.tar.gz
tar -zxfv mailboxes.tar.gz
Reply With Quote