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.

Transfer to another server

Discussion in 'General Discussion' started by ASTRAPI, Sep 20, 2009.

  1. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    The faster and better way to do that?

    Some files and a big database.

    How can i do it fast from cpanel to cpanel?

    Thank you
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    If you are simply migrating and existing Cpanel server to a new server, you can much more rapidly transfer the contents of your server using RSYNC.

    This is a basic rundown of how I typically do it ....

    1. Install Cpanel on the new machine and try to match the software installed as closely as possible in terms of the same versions (Cpanel, MySQL, Apache, PHP, etc)

    2. Rsync over the contents of your accounts and system settings

    3. Globally replace the IP and hostname information in all files

    4. Run "/scripts/upcp --force" to more seamlessly smooth out everything
    that can get a little mixed up when you merge two systems.

    Done properly, you can move the entire server over to a new server in
    a small fraction of the time it normally takes to use the normal Cpanel tools
    in either WHM or from the /scripts/pkgacct tool in SSH.

    The above methods only work for cpanel to cpanel transfers though where you are moving the contents of an established server to a new machine.

    The next best thing would be to run the previous mentioned "/scripts/pkgacct (login)" against all accounts and then rsync the cpmove files to the new server where you would run the conterpart "/scripts/unpkgacct". This method is typically faster than using the web interface in WHM and more tolerant to handling sites with larger files.

    If you are converting from a competing control panel or uncomfortable working in the shell environment, my best recommendation would be to use the multiple site transfer tools in WHM.




    3. Run "/scripts/upcp --force"
     
  3. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Thank you great info :)
     
  4. cveks

    cveks Registered

    Joined:
    Jul 18, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    2. can you give us a command which you use to rsync all neccessary content from one server to another?

    3. also give us list of files where we need to replace old IP with new one.

    thanks.
     
  5. Rehan

    Rehan Registered

    Joined:
    Sep 24, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Please give me the answers of above question.


    Regards,
    Rehan
     
  6. Rehan

    Rehan Registered

    Joined:
    Sep 24, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Can any body tell me that what is the rsync command to move backup from one server to another server.

    Regards,
    Rehan
     
Loading...

Share This Page