Hey Peter,
I'm guessing you have root access to both your old and new server.
Steps on backing up accounts
-------------------------------------
This guide is guessing that you have already made backups of each account you want to transfer to the new server by running the command
in SSH. Depending on your server specs and how many accounts you want to transfer this could take from 5 min to 4 hours. I'm also guessing that you have enabled backups in root WHM and have setup a folder to backup your file.
This guide I'll be using the folder /backup/ to where my files all my accounts have been backup to. (The full path will look something like /backups/cpbackup/daily)
Lets get started!!!
===
1) In SSH cd to backup folder
Code:
root@server [/]# cd /backup/cpbackup/
2) Now this is not where your files are located, but rather in a folder called daily, weekly or monthly. Your current backups should be in daily (daily folder is /backups/cpbackup/daily)
3) We are now going to tar the whole daily folder
Code:
root@server [/backups/cpbackup]# tar -zcvf backup_daily_folder.tar.gz daily
(Depending on how many accounts or your sever specs this could take anywhere from 5 min to 4 hours, your server may be "laggy" during this time)
4) Once you have that done you should see a file named backup_daily_folder.tar.gz in /backups/cpbackup . We are now going to move this file to your new server!
Code:
root@server [/backups/cpbackup]# scp -c arcfour backup_daily_folder.tar.gz root@SERVERIP:/home/
After you enter this, you will be asked for root's password and hit enter when your done. This will then trafser this file to that server.
Once your done, type
Code:
root@server [/backups/cpbackup]# rm -rf backup_daily_folder.tar.gz
(removes the tar file on your old server)
ON YOUR NEW SERVER
5) Go to your /home/ folder
Code:
root@NEWserver [/]# cd /home/
and tpye this
Code:
root@NEWserver [/home]# tar -xvfz backup_daily_folder.tar.gz
(This will unpack the tar)
Once again lets delete the tar file
Code:
root@NEWserver [/home]# rm -rf backup_daily_folder.tar.gz
Now in your new server logon to root WHM and click on the
Backup >
Restore a Full Backup/cpmove file
and use the information on that screen to use the accounts on the server.
If you have any questions post them below!
From,
Adam