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 [email protected]:/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 [email protected]:/home/$user/ /home/$user; done
rsync -avuz -e ssh [email protected]:/var/cpanel /var/cpanel
rsync -avuz -e ssh [email protected]:/var/lib/mysql /var/lib/mysql
rsync -avuz -e ssh [email protected]:/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty/mailman
rsync -avuz -e ssh [email protected]:/usr/local/cpanel/base/frontend /usr/local/cpanel/base/frontend
rsync -avuz -e ssh [email protected]:/etc/valiases /etc/valiases
rsync -avuz -e ssh [email protected]:/etc/vdomainaliases /etc/vdomainaliases
rsync -avuz -e ssh [email protected]:/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
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 [email protected]:/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 [email protected]:/home/$user/ /home/$user; done
rsync -avuz -e ssh [email protected]:/var/cpanel /var/cpanel
rsync -avuz -e ssh [email protected]:/var/lib/mysql /var/lib/mysql
rsync -avuz -e ssh [email protected]:/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty/mailman
rsync -avuz -e ssh [email protected]:/usr/local/cpanel/base/frontend /usr/local/cpanel/base/frontend
rsync -avuz -e ssh [email protected]:/etc/valiases /etc/valiases
rsync -avuz -e ssh [email protected]:/etc/vdomainaliases /etc/vdomainaliases
rsync -avuz -e ssh [email protected]:/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