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!

Migrating from server A to server B Technical questions..

Discussion in 'General Discussion' started by ramystyle, Jun 7, 2007.

  1. ramystyle

    ramystyle Well-Known Member

    Joined:
    Feb 9, 2004
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Montreal
    I have some questions about migrating from server A to server B.
    I ahve followed a tutorial on http://bobcares.com/article46.html.

    I was wondering couple of things:
    - Copying accounts using WHM + RSYNC is better then just RSYNC ?
    - When I finished copying all accounts into the new server (B), I need to RSYNC all in case something change while copying.
    The first RSYNC used is:
    "for user in `cat /home/tomove`; do rsync -avuz -e ssh root@OLDSERVERIP:/home/$user/ /home/$user; done"
    Not sure to understand the /home/tomove. What is suppose to be this directory? Should I replace this by /cpanel/users ?
    Those rsync command lines, I enter them one by one? I mean I wait until the first rsync is done (the home/users) before running the /var/cpanel one.

    - Is the list of rsync complete?
    for user in `cat /home/tomove`; do rsync -avuz -e ssh root@OLDSERVERIP:/home/$user/ /home/$user; done
    rsync -avuz -e ssh root@OLDserverIP:/var/cpanel /var/cpanel
    rsync -avuz -e ssh root@OLDserverIP:/var/lib/mysql /var/lib/mysql
    rsync -avuz -e ssh root@OLDserverIP:/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty/mailman
    rsync -avuz -e ssh root@OLDserverIP:/usr/local/cpanel/base/frontend /usr/local/cpanel/base/frontend
    rsync -avuz -e ssh root@OLDserverIP:/etc/valiases /etc/valiases
    rsync -avuz -e ssh root@OLDserverIP:/etc/vdomainaliases /etc/vdomainaliases
    rsync -avuz -e ssh root@OLDserverIP:/etc/vfilters /etc/vfilters

    - My 2 dns ns1.oldserver.com / ns2.oldsrver.com are now pointing to old ip. I change them to point to new server IP at the end? Once the whole rsync is done?

    I am new to this and I just want to make sure I am on the right track
     
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