I’m getting my new server setup and I need to migrate all of my files over from my current one. Instead of using a rsync, which I’d recommend if in the process of migrating the old server’s files they get changed, I decided to just use tar and the scp command.
For my tar I used,
tar czvf backup.tar.gz /home/html
For the transfer you can either go from original host to new host or vice versa.
scp localfile myname@[newhost]:/[path to owned directory]
or
go to the new host and do it the other way (which I decided to do).
scp username@[oldhost]:[path to file] ./ [/path]
You could also combine the two with a |. I didn’t because I had to figure out the scp commands.
FYI: I tried to do a simple wget on the tar’d file but for some reason it gave me a 403.
