Server to Server Transfers/Migrations

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.

About the Author, Dan Cameron:

I'm the owner and solution engineer at Sprout Venture, a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

blog comments powered by Disqus