This will overwrite things on the new server, so it's only useful if you want an exact copy of the content on your old server.
If you are copying the entire contents of the server, then it is simpler to just copy the whole database using mysqldump, and copy the courses directory.