Restoring or Reconstructing a cPanel Account Manually

These are the steps to take when you don’t have cPanel-generated cpmove or backup files but you have the old drive connected via USB port.

Prerequisites: Old drive connected via USB and shell root access

Create an account of the same name on the new server.

Migrating Public Html Files

This is the easiest part.

1. Copy or move /olddisk/home/usr/public_html to /home/usr/ (no need to include public_html again)

2. # chown -R usr /home/usr/public_html/

Migrating MySQL db tables

1. Create a db on the new server via cPanel. Makes sense to use the same db name as the old one and same db user with same password.

2. In shell copy or move /olddisk/var/lib/mysql/usr_dbSource to /var/lib/mysql/usr_dbDestination

3. # chown -R mysql:mysql /var/lib/mysql/usr_dbDestination (if you need to move any table files in this directory do it after you run the command)

4. Create a user and add user to database.

Migrating Email Accounts

1. Create email accounts in cPanel with the exact addresses as the ones you are migrating.

2. You may want to copy/move the entire ‘mail’ folder from olddisk or you may want to copy/move specific folders within ‘mail’ matching the domains of the account(s), if you have add-on domains without any email accounts. For example, if you have accounts ‘’ then copy the ‘’ folder inside of ‘mail’.

3. # chown -R usr /home/usr/mail/