copy wordpress site files on new server

I wrote a process that I use when I move a WP site from one place to another. I keep tweaking it, but the process has worked well for me many times.

There are plugins that purport to automate the move, but they didn’t work for me, or they required premium ($) features to complete the process.

So I developed my own process, which you are welcome to ‘borrow’. Here. It’s based on Codex principles (mentioned in the other answer), but tweaked into a process that works for me.