Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Server Migration 101 (http://www.greenguysboard.com/board/showthread.php?t=23927)

cellinis 2005-09-12 12:51 PM

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

Cleo 2005-09-12 01:00 PM

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

SinSational 2005-09-12 09:30 PM

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.


All times are GMT -4. The time now is 02:54 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc