|
2005-09-12, 12:51 PM | #1 |
They have the Internet on computers, now?
|
Server Migration 101
Hi
I need to move content from couple of my dedicated boxes to a new one. Anyone has some tutorials handy for server migration? Each server has around 10-15 domains. There are a lot of php/mysql sites as well. Mainly wordpress and a couple with Autogallery SQL and WSN Links. Of course, the easy way would be to use FTP and then PHPMyAdmin to dump the databases. But since I have over 5 Gigs in content, and there are loads of subdomains that need to be moved, it would become quite a tiresome task! So if someone has already gone through this before, I would really appreciate the help. Any help would be appreciated. Regards Pankaj |
2005-09-12, 01:00 PM | #2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
I always get my host to do it for me, but rsync is your friend.
SSH into your new server rsync -avCp --exclude "Foo" USERNAME@OLDSERVER.com:/PATH/TO/OLD/STUFF /PATH/TO/NEW/STUFF Enter your password to the old server when prompted |
2005-09-12, 09:30 PM | #3 |
Shut up brain, or I'll stab you with a Q-tip!
|
rsync
Basically you can push data from your old server to your new server. your host should do this for you. sample code: login to old server and run this command rsync -zave ssh /usr/local/apache/sites root@domain.com:/usr/local/apache the above command would push the /sites directory from your old server to the /apache directory on your new server. |
|
|