Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Transfering a Huge cPanel Account from One to Another

Discussion in 'Data Protection' started by laztrix, Dec 26, 2013.

  1. laztrix

    laztrix Active Member

    Joined:
    Feb 7, 2012
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Website Owner
    Hello Guys,

    Just yesterday I've moved my sites, except one which is over 300 GB large, to another server. I’ve intentionally left the large one out and tried to transfer it separately. Both servers are obviously cPanel (WHM 11.40.1 to be precise) but the transfer got stuck or timed out using "Copy Multiple Accounts/Packages from another Server"

    I’ve read threads here which are way too old, so my question is hove should I go about doing the transfer? Be aware I’m a noob and I need specifics :)

    Thank You,

    yavuz
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You should package the account manually on the source server via:

    Code:
    /scripts/pkgacct $username
    Next, upload the archive to the destination server via SCP or SFTP. You can then restore it on the destination server via:

    Code:
    /scripts/restorepkg $username
    Note: Make sure you have sufficient free space on the source/destination server.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. laztrix

    laztrix Active Member

    Joined:
    Feb 7, 2012
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Website Owner
    Thank you Michael, I'll do that and get back with the results here.
     
  4. laztrix

    laztrix Active Member

    Joined:
    Feb 7, 2012
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Website Owner
    After many hours the backup got created. I tried the SCP command but got this:

    /home$ scp cpmove-user.tar.gz user@domain.com:/home/user/public_html/folder/
    Host key verification failed.
    lost connection
     
  5. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    118
    Likes Received:
    13
    Trophy Points:
    168
    Location:
    Houston, TX
    Just open an FTP connection from one server to another and mput the file. Make sure you are in the correct directory on the local machine, then "ftp IPADDRESS" then issue "cd" and "ls" as necessary to get to the right directory and then "mput FILENAME" to push the file(s).

    You'll probably need to issue the command "passive" to turn off PASV transfers.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,303
    Likes Received:
    1,847
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Ensure you use key authentication with SCP if you normally have to use a key with accessing the server as "root" via SSH.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. texo

    texo Well-Known Member

    Joined:
    Mar 28, 2007
    Messages:
    144
    Likes Received:
    2
    Trophy Points:
    168
    It will be easier to create a cpbackup like this:

    /scripts/pkgacct --skiphomedir $username

    once you've restored it, you can rsync the contents of public_html
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice