Stolen from the wonderful Chicken, from
http://www.hosthideout.com/
----
First, cd to folder you want to tar up. The following will tar everything in the folder, plus any subfolders. So if you want to tar up all the files in your httpdocs folder (index.html, etc.), plus the subfolders inside httpdocs, then you'd:
log into the old server (root)
cd /path/to/httpdocs
tar cvf younamethe.tar *
gzip younamethe.tar
log into the new server (root)
cd /path/to/where/you/want/all/files/to/be
ftp oldserver.com
(enter FTP username and pass on old server for this site)
cd /path/to/httpdocs
get younamethe.tar.gz
quit
You're now out of FTP and disconnected and in the directory /path/to/where/you/want/all/files/to/be and the file is where it should be, next step is...
gzip -d younamethe.tar.gz
tar xvf younamethe.tar
You now have all the files where they should be and you can...
rm younamethe.tar
y
-and you're good to go!
---
Chicken, HostHideOut.com