by Oscar González.
Hi,
I did a tar on the moodle and moodledata directory.
I copied via ssh to the new server, then extracted the data and edited the config.php file.
I also backup and restore the moodle database.
Oscar.