binaer

Well-Known Member
Jul 6, 2004
60
0
156
Hello community

What's the fastest way to move Accounts from an old box to a new box? Is this the WHM-Feature (Copy accounts) or another?

kind regards
binaer
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
Go on, have a guess
I'd personally recommend taking a full cPanel backup and then copy the tarballs over to the new server and then restore them. That way is more stable and reliable that using the account transfer procedure. Using rsync is a very bad idea unless you want to have to create a lot of things by hand on the new server first and then have to fix file ownerships - which is neither reliable or a stable way to do it.
 

tahunga

Registered
Mar 19, 2003
1
0
151
How to?

Make a full backup of an account from it's cpanel to a local folder then upload into the new server... but... do I have to create first an new account on the new server with the same domain name?.... and then upload to the new account... and from the new account process to restore the backup file..? :confused:
 

sh4ka

Well-Known Member
May 12, 2005
444
0
166
Uruguay
cPanel Access Level
DataCenter Provider
Just copy all backup tarballs from your backup directory (/backup/cpbackup/daily weekly or monthly, as fresh as you want) to the new server using SCP command, then configure backups on the new server, create a directory at /backup/cpbackup/ANY_FOLDER and put your tarballs there. Last step, run "Restore Multiple Backups" and restore all backups from the folder you created... , that's all, after the restore process all account should be recreated and completely restored in the new server ;)
 

binaer

Well-Known Member
Jul 6, 2004
60
0
156
why, I should not use the "Account function"? Is there any thing? How much does it takes longer than the "Backup-Restore"-Procedure? I think, that's not the thing...

Backup/Restore, I think, is a Bad idea when I want to use the actual Datas...
 

panayot

Well-Known Member
Nov 18, 2004
127
0
166
Transfer account will be best as it will fetch latest file/database updates. What I do is start a transfer of multiple accounts and watch the progress. When each account is trasfered and created successfuly on the new server, I immediately change dns so that it points to the new server. (you can either change name servers at the domain or change the ip-s in your old servers's dns server). You could also reduce one day beforehand the dns refresh of your current server, so that old ip-s dont get cached for a long time in dns servers around the internet.

I would suppose that this way is as quick as the backups method because they both involve the same operations like dups, gzipping, etc.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
Go on, have a guess
binaer said:
why, I should not use the "Account function"? Is there any thing? How much does it takes longer than the "Backup-Restore"-Procedure? I think, that's not the thing...

Backup/Restore, I think, is a Bad idea when I want to use the actual Datas...
No, backup restore is not a bad idea, it's generally regarded as the best way to move accounts.

The transfer procedure is fine if you have small sites to move, but anything that is quite large could result in network timeouts and the forums are littered with such problems.
 

baci

Registered
Oct 26, 2005
1
0
151
Help

I have the tar full backup that has everything in it from my site, php stuff to mysql stuff.

How do I put it onto my new server and make it as if it was my old one?

P.S. I no longer have the old server, I have servral of the tars though. I don't know where to find servral functions you mention, such as "run "Restore Multiple Backups""

help, thanks!
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
chirpy said:
No, backup restore is not a bad idea, it's generally regarded as the best way to move accounts.

The transfer procedure is fine if you have small sites to move, but anything that is quite large could result in network timeouts and the forums are littered with such problems.
incase i want to transfer 300+ websites (about 10GB of disk space), what if i open whm from shell? so i ssh to my new server then open whm using text based browser like 'links'.

does it will help reducing the networks timeouts problem?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
Go on, have a guess
AFAIK, that won't work, and if it did, it wouldn't make any difference as the same mechanism is still being used. Backup and restore is still the most reliable method to use.
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
so i just configure backup via WHM? and then ftp all tar.gz files to the new server and restore it?

does backup and restore all accounts in server can be done via SSH?
 

markhard

Well-Known Member
Apr 22, 2004
252
0
166
restore backup via SSH

we can run backup all accounts from SSH using:

/scripts/cpbackup --force

my question is: how to restore all accounts from daily/weekly/monthly backup from SSH?