Smart webpage migration
Posted by Ktoso on 27/08/2009 – 20:15
I recently had to migrate a big website – about 5GB – to a new server. That could take a while to do, right? Well, maybe if you did it like that (the not smart way):

Oh man, that would take sooo much time...
Thanks goodness I’m not really keen on doing stuff the slow “not_smart” way, and the new server is a dedicated CentOS machine! :-) So, what did I do?

Yeah, no time wasted here!
There’s a lot of ways to accomplish this if you have shell access. You could:
-
wget -r --user=login --password='pass' ftp://admin:example.com/folder/
-
ncftp #normal ftp should also work the same way open ftp://example.com login pass mget -r folder
- Yes, SCP is a great tool for this kind of situation, but i couldn’t use it since the old server didn’t have ssh acces :-( Here is how it could be used in such a situation:
scp -r login@old.example.com:/home/folder login@new.example.com:/home/folder
I used the second method and am quite satisvied with it, as the servers did all the migrating i set up the database and did some other project related stuff… :-)


Post a reply