Here is a usefull & simple way to transfer all your accounts/websites, from one virtual private server to another. We will be using SSH to do this.
1. Login to the old server and make sure it has enough disk space for all accounts to be backed up. I recommand using Putty which can be downloaded here: http://www.putty.org/
2. mkdir /home/massbackup
3. for i in `ls -1 /var/cpanel/users`;do echo $i >> /home/massbackup/accts;/scripts/pkgacct $i;mv /home/cpmove-* /home/massbackup;done
4. cd /home;tar zcpf massbackup.tar.gz massbackup
5. scp /home/massbackup.tar.gz root@xx.xx.xx.xx:/home/ ”Replace xx.xx.xx.xx with your NEW server IP”
6. Enter root’s password of new VPS.
7. Now close your putty connection with the OLD VPS and login to the NEW VPS using Putty.
8. cd /home;tar zxpf massbackup.tar.gz;mv massbackup/* /home;for i in `cat /home/accts`;do echo restoring $i;/scripts/restorepkg $i;done
Your done! Hope you find this information usefull :):):)