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.

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:
    6
    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:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    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.
     
  3. laztrix

    laztrix Active Member

    Joined:
    Feb 7, 2012
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    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:
    6
    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:
    111
    Likes Received:
    11
    Trophy Points:
    18
    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:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    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.
     
  7. texo

    texo Well-Known Member

    Joined:
    Mar 28, 2007
    Messages:
    143
    Likes Received:
    0
    Trophy Points:
    16
    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