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 to copy accounts from old server to a new server ?

Discussion in 'Data Protection' started by calvinphanctt, Jul 9, 2014.

  1. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Dear all,

    I just purchase a new server with WHM/Cpanel, and I would like to copy/transfers all my accounts from OLD server to NEW server using SSH commands, how do I do that ? (I know WHM has a function to copy account to new server using web browser, but I don't want to use that, it is too slow, and I want to use SSH. By the way both servers are using WHM/Cpanel)

    Thank you very much !

    Sincerely,
    Calvin
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,145
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Please try with the following steps.

    1) First create the backup on your server with /scripts/pkgacct command ( /scripts/pkgacct USERNAME)

    2) SCP your all account backup file to new server under the home directory

    3) Restore migrated backup files on new server through /scripts/restorepkg scripts ( /scripts/restorepkg USERNAME)


    Let me know if you have any other question.
     
  3. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Hi 24x7server,

    Thank you for your help, I don't understand the step #2, can you please give example ? Thank you very much !

    Sincerely,
    Calvin
     
  4. cPanelSamir

    cPanelSamir Registered
    Staff Member

    Joined:
    Jun 11, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  5. calvinphanctt

    calvinphanctt Active Member

    Joined:
    Mar 27, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Thank you very much Samir !

    Sincerely,
    Calvin
     
Loading...

Share This Page