Copying account to new server

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
I'm setting up a new server, and want to copy a portion of an account from my older server to the new one. I don't want to copy the whole thing, though; the whole thing is about 30G, and right now I just want to do some testing.

Then, when testing is over and bugs in my scripts are corrected, I want to copy over the remainder of the account. This part is a doozy; I have a massive amount of directories that need to be copied (seriously; 4 directories with about 30,000 directories in each of them), and when I manually download them it takes about 36 hours. So, taking the site offline while I manually download and upload isn't an option.

Can you guys suggest a quicker, better way for me to do this?

If it matters, I'm using WHM 11.30.3 on both servers. The old one has RHEL 4, and the new one has RHEL 5.

TIA,

Jason
 

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
On a similar but different note, can you suggest a way for me to copy account configuration data from one server to the other, without actually copying data?

I have one account with 37 parked domains, 4 subdomains each, and 15 POP accounts (with each parked domain redirecting accordingly). Obviously, I'd much rather copy all of this over, rather than start entering them all again manually! :)
 

GoWilkes

Well-Known Member
Sep 26, 2006
692
33
178
cPanel Access Level
Root Administrator
I hate to keep replying to my own thread, but I'm getting new info, and don't want anyone to waste their time with replying and telling me what I've already learned :)

Under WHM, I found that I can copy an account, and skip databases and homedir. This seems like a logical choice; copy over the configuration, then use rsync to selectively copy the data when it's needed.

The only problem is, when I ran this on the account, everything looked like it went through... but no account was created on the new server, no domains were parked, nothing new was in the DNS, nada.

Am I misunderstanding the purpose of skipping homedir?

While we're on it, can someone verify that I'll be using rsync correctly? This is my first time, and I'm nervous that this will accidentally wipe out my account or something :)

# rsync -avzu --progress [email protected]:/home/myacct /home/myacct

(obviously, 12.34.56.78 will be replaced with the old server's IP, and "myacct" would be replaced with my account name)