Best way to transfer account from one server to another

AkhilStyle

Member
Mar 4, 2005
13
0
151
I want to transfer one account on my old server to my new one. I tried this using WHMs function but basically it was copying the home folder and filled up the hard drive/home directory to 100% and then stopped. Why was this?

What other ways can I transfer besides FTP?

thanks
Akhil
 

jester.ro

Well-Known Member
PartnerNOC
Feb 6, 2004
304
0
166
Bucharest, Romania
cPanel Access Level
DataCenter Provider
the way i'm doing it

go intro the acount cpanel, generate a backup, and then copy that backup on the new server

then on the new server, in WHM do a "Restore a Full Backup/cpmove file"
 

AkhilStyle

Member
Mar 4, 2005
13
0
151
Will that copy things like databases etc?

Also when you generate a backup does it generate it on the server - then you have to download it, and upload it again?
 

jester.ro

Well-Known Member
PartnerNOC
Feb 6, 2004
304
0
166
Bucharest, Romania
cPanel Access Level
DataCenter Provider
so...

say you want to transfer account X from server A to server B

go to cpanel (port 2082) for account X on server A

Go to the backup page, and generate a backup.
(it will tell you to wait, depending on the account size on disk and server load could take several minutes to complete)

After is finished, note the name of the generated file (should be something like
backup_TIMESTAMP_username.tar.gz

If you have root access to both servers

SSH to server B, and issue the following:


scp SERVER_A_IPADDRESS:/home/username/backup_TIMESTAMP_username.tar.gz .

(notice the dot at the end)


(this will put the file in the folder you were in when you logged in on server B - usually /root)


Then go in the WHM of server B, click "Restore a Full Backup/cpmove file". It should show a list of possible files to restore.

Type the username that you want restored, and click Restore

Give it some time, and it should end with "Account restore complete"

Then you should go to the DNS functions, and view the zone of the domain created, to make sure everithing is ok.

That's about it.

The backup contains everithing needed to re-create the account on the other server(site, emails, email accounts, databases, .htaccess files, addon-domains, subdomains etc)
 

AkhilStyle

Member
Mar 4, 2005
13
0
151
Thanks

I am currently using 50 GB on the old server and do not have enough space to make this backup :P

I will try to remove some files

Thanks for the help

Greatly appriciated
 

jester.ro

Well-Known Member
PartnerNOC
Feb 6, 2004
304
0
166
Bucharest, Romania
cPanel Access Level
DataCenter Provider
if you're using 50 GB on one SINGLE account, than probably you have movies/sound/archives in your account.


i would suggest copying these big files on the new server first, using plain FTP, and storing them temporarily on a partition that has enough space to hold them. theu delete those files on the old server, and to the backup.

transfer the backup, restore it on the new server, then copy the files from their temporary location into the account.
 

AkhilStyle

Member
Mar 4, 2005
13
0
151
I could do that but I am in the UK and only have a 1 meg connection so this would take ages

On my old server I have a 105GB /backup hard drive

Shall I set WHM to make a backup to here?

Akhil
 

MarkReaktor7

Member
Jan 6, 2005
12
0
151
if you have shell why not tar up your big files (Movies/files etc) and wget them across to the new server, delete the files off the old server and do a backup in cpanel. then restore it on the new cpanel and then untar the file?
 

AkhilStyle

Member
Mar 4, 2005
13
0
151
Hello

On the old server I do not have ssh access. I can use cpanel or whm there. I have made a full backup - is there anyway I can directly transfer this from one server to the other?

Thanks
Akhil