Stop worrying about your server.

cPanel/Plesk Server Management for just $59/mo with Unlimited tickets, Unlimited admin hours, Security audits, 24×7 monitoring and lot more 

cPanel Server Management  $59/mo Click here

Plesk Server Management $59/mo Click here

Warning: If you are not an expert in command line please dont do these steps

First remove any backup file present under /home directory using the command

rm -rf /home/cpmove-*

Create the list of accounts you wish to migrate using the below commands.

cat /etc/trueuserdomains | awk '{print $2}' > /home/accountlist

Now you have the list of account in the file  /home/accountlist

Suppose that you have 100 accounts and wish to move only 50 account use the command below to create list of 50 accounts

cat /etc/trueuserdomains | awk '{print $2}' | head 50 > /home/accountlist

If you are moving only 50 account use the below steps to create list of another rest of accounts and follow the same steps

cat /etc/trueuserdomains | awk '{print $2}' | tail 50 > /home/accountlist

Now create backups of accounts in the list using the below command

for i in $(cat /home/accountlist); do /scripts/pkgacct --force $i; done

Once backup is created copy the backups to the new server

scp cpmove-* [email protected]_server_ip:/home

Once the account is copied copy the account list

scp /home/accountlist  [email protected]_server_ip:/home/accountlist

Now login to the new server

Restore all the accounts using the below command

for i in $(cat /home/accountlist); do /scripts/restorepkg --force $i; done

Now we are done with the migration!!

Need our help with migration ?

Monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more for just $59 

[sep][/sep][button size=”large” color=”green” title=”Server Management from iServersupport” link=””]Server Management at just $59[/button]