You want:
http://docs.moodle.org/23/en/Moodle_migration
Or the 1.9 version: http://docs.moodle.org/19/en/Moodle_migration
This tells you have to move a site from one place to another. I don't remember in 1.9.x, but in 2.x the "sed" method doesn't update links in blocks so if you have any of those, you'll need to use the admin/replace.php method, or combine the two.