As long as you have ssh access...
If you have SSH access on the old server, you could use SCP or RSync (over SSH) which would be simpler. If you wanted to copy the contents of public_html from old to new server, you can do this...
1 - Login to the new server
2 - scp -prC ro
[email protected]:/home/username/public_html /home/username/
Check out the man page on scp. You can actually move data from server A to server B while you're logged into server C. Just specify the source and target in
[email protected] format and it works fine.
Personally when I'm moving accounts like this (and I've been doing a lot of them recently) I use rsync to sync up the user's public_html directory on the old server to the new one. Then I show them their new account, get an okay to make the change, and sync once more. I've been syncing to a seperate /backup directory like:
rsync -avz -e ssh
[email protected]:/home /backup/oldserver/
This will sync up the entire home directories from the old server to /backup/oldserver/ on the new one. Then it's just a matter of copying the files over. You can run rsync via cron and it will just update the changes rather than copy all the files every time.
- Jason