From Centos 6 to Centos 7 with a big account

AlIur

Member
May 8, 2021
6
0
1
Moscow
cPanel Access Level
Root Administrator
Hello,

Please tell me how to solve the problem, there is a server on Centos 6, it contains only 1 account, but a very large one (1.5 TB of data / 7500 mailboxes). I would like to upgrade it to Centos 7, but how can I do that? It is impossible to update the OS on the server, I think it is also impossible to make a transfer to another server, because it will copy forever. How can this problem be solved? Thank you.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,285
2,232
363
cPanel Access Level
Root Administrator
Hey there! It's definitely possible to copy the data to another system, although it will take some time. How long it takes will depend on the speed of the connection between the two servers.

If this were my system, I would do the following:

-On the CentOS 6 machine, run "/scripts/pkgacct --skiphomedir username" where "username" is the cPanel user you are working with.
This will create a backup of all the account settings that can be restored, ignoring the account's data.

-Move that file over to the new CentOS 7 machine
-Restore the backup
-use "rsync" to sync the contents of /home/username between the two systems

That will take some time, but should result in a good migration of your data.