The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you do a manual cpanel trasnfer?

Discussion in 'General Discussion' started by Bidybag, Apr 23, 2006.

  1. Bidybag

    Bidybag Member

    Joined:
    Sep 17, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    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
     
  3. Bidybag

    Bidybag Member

    Joined:
    Sep 17, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    WIll it stop trasnfering at 2gb because of LFS?
     
  4. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    SCP should move files over 2 gigs in size however you might be better off using rsync instead to do the large transfer.
     
  5. Bidybag

    Bidybag Member

    Joined:
    Sep 17, 2005
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    is this the program: http://rsync.samba.org/

    which server would i install that on and is it hard to use and install?
     
    #5 Bidybag, Apr 24, 2006
    Last edited: Apr 24, 2006
  6. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    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
     
  7. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    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.
     
  8. cooldude7273

    cooldude7273 Well-Known Member

    Joined:
    Jan 11, 2004
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Roswell, GA
  9. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    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?
     
  10. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16

    These commands are very easy. Thankssssss....I got the timeout problem too..
     
    #10 taotoon, Apr 28, 2006
    Last edited: Apr 28, 2006
  11. mohit

    mohit Well-Known Member

    Joined:
    Jul 12, 2005
    Messages:
    553
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
Loading...

Share This Page