Hey,
Note to mods: Maybe you can sticky this thread?
-----
I have seen many requests on people trying to transfer accounts from one server to another. In this tutorial or how to guide, you will need root access via SSH on both servers. So lets get started!
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 6 hours. I'm also guessing that you have enabled backups in root WHM and have setup a folder to backup your file. I'm also guessing that you DO NOT, have Incremental backup enabled. Incremental backups do not put each account in its own .tar.gz file. IF you have Incremental backups enabled please disable them by going into root WHM, Main > Backup > Configure Backup. Once you have all backups done, lets really really start transfering accounts.
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
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
(Depending on how many accounts or your sever specs this could take anywhere from 5 min to 6 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!
After you enter this, you will be asked for root's password on your NEW server and hit enter when your done. This will then transfer the file to the new server.
Once your done, type
(removes the tar file on your old server)
ON YOUR NEW SERVER
5) Go to your /home/ folder
and tpye this
(This will unpack the tar)
Once again lets delete the tar file
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
Note to mods: Maybe you can sticky this thread?
-----
I have seen many requests on people trying to transfer accounts from one server to another. In this tutorial or how to guide, you will need root access via SSH on both servers. So lets get started!
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
Code:
/scripts/cpbackup
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:
[email protected] [/]# cd /backup/cpbackup/
3) We are now going to tar the whole daily folder
Code:
[email protected] [/backups/cpbackup]# tar -zcvf backup_daily_folder.tar.gz daily
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:
[email protected] [/backups/cpbackup]# scp -c arcfour backup_daily_folder.tar.gz [email protected]:/home/
Once your done, type
Code:
[email protected] [/backups/cpbackup]# rm -rf backup_daily_folder.tar.gz
ON YOUR NEW SERVER
5) Go to your /home/ folder
Code:
[email protected] [/]# cd /home/
Code:
[email protected] [/home]# tar -xvfz backup_daily_folder.tar.gz
Once again lets delete the tar file
Code:
[email protected] [/home]# rm -rf backup_daily_folder.tar.gz
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