Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    147

    Default How To: Transfer Accounts from one server to another!

    Hey,

    Note to mods: Maybe you can sticky this thread?


    -----
    I have seen many requests on people trying to transfer accounts from one server to another. In this tutorial or how to guide, you will need root access via SSH on both servers. So lets get started!


    Steps on backing up accounts
    -------------------------------------

    This guide is guessing that you have already made backups of each account you want to transfer to the new server by running the command

    Code:
    /scripts/cpbackup
    in SSH. Depending on your server specs and how many accounts you want to transfer this could take from 5 min to 6 hours. I'm also guessing that you have enabled backups in root WHM and have setup a folder to backup your file. I'm also guessing that you DO NOT, have Incremental backup enabled. Incremental backups do not put each account in its own .tar.gz file. IF you have Incremental backups enabled please disable them by going into root WHM, Main > Backup > Configure Backup. Once you have all backups done, lets really really start transfering accounts.

    This guide I'll be using the folder /backup/ to where my files all my accounts have been backup to. (The full path will look something like /backups/cpbackup/daily)

    Lets get started!!!

    ===
    1) In SSH cd to backup folder

    Code:
    root@server [/]# cd /backup/cpbackup/
    2) Now this is not where your files are located, but rather in a folder called daily, weekly or monthly. Your current backups should be in daily (daily folder is /backups/cpbackup/daily)

    3) We are now going to tar the whole daily folder

    Code:
    root@server [/backups/cpbackup]# tar -zcvf backup_daily_folder.tar.gz daily
    (Depending on how many accounts or your sever specs this could take anywhere from 5 min to 6 hours, your server may be "laggy" during this time)

    4) Once you have that done you should see a file named backup_daily_folder.tar.gz in /backups/cpbackup . We are now going to move this file to your new server!

    Code:
    root@server [/backups/cpbackup]# scp -c arcfour backup_daily_folder.tar.gz root@NEWSERVERIP:/home/
    After you enter this, you will be asked for root's password on your NEW server and hit enter when your done. This will then transfer the file to the new server.

    Once your done, type

    Code:
    root@server [/backups/cpbackup]# rm -rf backup_daily_folder.tar.gz
    (removes the tar file on your old server)

    ON YOUR NEW SERVER

    5) Go to your /home/ folder

    Code:
    root@NEWserver [/]# cd /home/
    and tpye this

    Code:
    root@NEWserver [/home]# tar -xvfz backup_daily_folder.tar.gz
    (This will unpack the tar)

    Once again lets delete the tar file

    Code:
    root@NEWserver [/home]# rm -rf backup_daily_folder.tar.gz
    Now in your new server logon to root WHM and click on the

    Backup > Restore a Full Backup/cpmove file

    and use the information on that screen to use the accounts on the server.

    If you have any questions post them below!

    From,
    Adam
    cPanel Customer since November 2005
    ---
    - 7 Servers running cPanel/WHM

    Tutorials I have made:
    - Transfer accounts from one server to another

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,914

    Default

    use whm

    Transfers
    Copy an account from another server
    Copy an account from another server with account password
    Copy multiple accounts from another server
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  3. #3
    Member
    Join Date
    Nov 2005
    Posts
    147

    Default

    Quote Originally Posted by dalem View Post
    use whm

    Transfers
    Copy an account from another server
    Copy an account from another server with account password
    Copy multiple accounts from another server
    Hey,

    Or you could use this method. HOW ever, when trasfering large accounts (anything over 300mb is my limit) you have a higher chance of something going wrong, from a lost packet from old server to new server. This process is longer since it takes each account and extracts them one by one, instead of downloading all the accounts and extracting all the accounts together. Hence the reson the first method is the best...

    From,
    Adam
    cPanel Customer since November 2005
    ---
    - 7 Servers running cPanel/WHM

    Tutorials I have made:
    - Transfer accounts from one server to another

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    Default i need help to ransfer

    i'm reseller hosting who use whm, how can i transfer my client to my server ?
    in my whm i don't see trasfer link in main. thx

  5. #5
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Default

    Hi

    This is how I do it :

    1. Log into the server that your copying the accounts from via SSH

    2. type '/scripts/pkgacct [username]'

    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'

    4. Log into the [NEWSERVER] via SSH

    5. type '/scripts/restorepkg [username]'

    DONE!
    When I was young I used to break Windows, Now Microsoft does it for me!

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    147

    Default

    Quote Originally Posted by zoelsepur View Post
    i'm reseller hosting who use whm, how can i transfer my client to my server ?
    in my whm i don't see trasfer link in main. thx
    Contact your host, as they have root access...

    From,
    Adam
    cPanel Customer since November 2005
    ---
    - 7 Servers running cPanel/WHM

    Tutorials I have made:
    - Transfer accounts from one server to another

  7. #7
    Member
    Join Date
    Aug 2006
    Posts
    34

    Default

    Quote Originally Posted by Chriz1977 View Post
    Hi

    This is how I do it :

    1. Log into the server that your copying the accounts from via SSH

    2. type '/scripts/pkgacct [username]'

    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'

    4. Log into the [NEWSERVER] via SSH

    5. type '/scripts/restorepkg [username]'

    DONE!
    Can this be done with multiple accounts? Can you provide a similar step by step guide with scripts please.

    Thanks a lot

  8. #8
    Registered User
    Join Date
    Mar 2005
    Posts
    1

    Default

    Quote Originally Posted by HelloAdam View Post
    Hey,
    -----
    I have seen many requests on people trying to transfer accounts from one server to another. In this tutorial or how to guide, you will need root access via SSH on both servers. So lets get started!


    Steps on backing up accounts
    -------------------------------------

    This guide is guessing that you have already made backups of each account you want to transfer to the new server by running the command

    Code:
    /scripts/cpbackup
    Will this method copy MySQL databases and Addon domains as well?

    I have seen mention that the WHM method of transfer doesn't copy those two (maybe it does now, but I guess it didn't use to)

    Thanks!

  9. #9
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default

    Quote Originally Posted by Chriz1977 View Post
    Hi

    This is how I do it :

    1. Log into the server that your copying the accounts from via SSH

    2. type '/scripts/pkgacct [username]'

    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'

    4. Log into the [NEWSERVER] via SSH

    5. type '/scripts/restorepkg [username]'

    DONE!
    My friend was a reseller of a server , and he had many clients
    He used whm to control them
    I have a dedicated server
    I want him tobe a reseller in my server
    and all his clients will be transfered to my server
    So, can I use above guide??


    2. type '/scripts/pkgacct [username]'
    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'
    and when I do them, they will create a tar file in my server???
    and they will stay in /home???
    thanks sir

  10. #10
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default

    And do I create a reseller in whm first?

  11. #11
    Member ddeans's Avatar
    Join Date
    Feb 2004
    Location
    Maryland
    Posts
    302

    Default

    You can, but either way you are going to have to change ownership of the accounts.

  12. #12
    Member ddeans's Avatar
    Join Date
    Feb 2004
    Location
    Maryland
    Posts
    302

    Default

    Quote Originally Posted by timbernet View Post
    Will this method copy MySQL databases and Addon domains as well?

    I have seen mention that the WHM method of transfer doesn't copy those two (maybe it does now, but I guess it didn't use to)

    Thanks!
    I use the WHM transfer method a lot and it copies the databases and add on domains for me.

  13. #13
    Member
    Join Date
    Jun 2007
    Posts
    16

    Default

    Quote Originally Posted by ddeans View Post
    You can, but either way you are going to have to change ownership of the accounts.
    what does it mean?
    how can i change ownership of the accounts?

  14. #14
    Member ddeans's Avatar
    Join Date
    Feb 2004
    Location
    Maryland
    Posts
    302

    Default

    In WHM -> Account Information -> List Accounts -> The very last column says who the owner is, click the edit icon next to them and select who the new owner should be.

  15. #15
    Member
    Join Date
    Apr 2004
    Posts
    215

    Default

    Quote Originally Posted by AngleOfDeath View Post
    My friend was a reseller of a server , and he had many clients
    He used whm to control them
    I have a dedicated server
    I want him tobe a reseller in my server
    and all his clients will be transfered to my server
    So, can I use above guide??
    you can only use the guide above only if you have root access to the old server. if your friend only a reseller, which don't have root access, all i know is to transfer accounts using cpanel full backup feature or from your server's WHM "copy account using account password" which is a boring thing to do if you have a lot of accounts
    HalfDedi.com : Half Dedicated Half Price
    We Provide Affordable VPS hosting solution in US and Singapore

Similar Threads & Tags
Similar threads

  1. Transfer Accounts from another Server
    By vwiley1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-12-2006, 12:24 PM
  2. problems after accounts transfer on another server
    By marius in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-19-2005, 07:47 AM
  3. Transfer all Accounts to a new server
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-14-2004, 10:42 AM
  4. How to transfer accounts to a different server?
    By Ronny in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 04-20-2003, 12:15 PM
  5. Transfer accounts to new server
    By drose25 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-14-2003, 09:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube