How do you do a manual cpanel trasnfer?

Bidybag

Member
Sep 17, 2005
23
0
151
I want to trasnfer a cpanl account to another server which has cpanel but the account is about 4gb and because of LFS (large file support) it crashes when it gets to 2gb.

So how do i do a manually trasnfer of that account, i only want the databases and content trasnfered.
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
You can copy a account from shell. Do the following :-
1) Login to server1
2) Execute the command :- /scripts/pkgacct username
A cpmove_username.tar.gz file will be created under /home. Copy the file on Server2 using Ftp or scp
3) scp cpmove_username.tar.gz IP_of_server2://home
3) Login to server2.
4) Move the .tar.gz file in /home
5) /scripts/restorepkg username
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
I suggest you to use 'scp' first as it will do the needful for you. Incase if it fails, then install rsync on Server2.

It not that hard to install RSYNC. Download the .tar.gz file on your server and do the following :-
wget the .tar file
Untar the file :- tar -zxf file.tar.gz
cd rsync-xxxx
./configure
make
make install


Also refer the below url's :-
http://rsync.samba.org/ftp/rsync/rsync.html
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
Might be simpler to move some stuff out of the home directory, or move databases out of the way, then do a cpanel transfer to copy the account and settings and transfer the large files separately. I've done that to good effect in the past.
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
On re-reading I realized my previous post might not have been really clear, so here goes in trying to clarify.

Let's say you go to /home/bigone and do a du, finding that you have 1Gb of files in public_html/bigfiles. I'd move /home/bigone/public_html/bigfiles somewhere else, then tar it up and send it over to the new server. Then I'd check the size of /home/bigone and if it was 500Mb or so, I could then go on and check the databases and do the same thing there. The idea being to reduce the size of what cpanel needs to transfer to be well under 1Gb so it goes faster and works (sometimes cpanel barfs on big transfers, even if they're under the maximum file size, best to keep things well under 1Gb and if that fails, try under 500mb).

It's still worthwhile using the cpanel transfer as it creates all the email accounts, forwards, ftp users, .htaccess files, etc etc, so is a real time saver there as that's the stuff that takes ages to transfer.

Cooldude - I guess that Apache limitation may be why the operation is failing, although I'm not sure it's actually through Apache at all? Unless the account tarball is being downloaded via an HTTP GET?
 

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
Try the script.....

hi,
have alook at the post of "ramprage" in this thread, his signature has a link to a very popular "cpanel FTP backup script" its a easy one, give it a try.

see ya,
mohit