There are a lot of good articles out there that can help you with this. This is more of specific examples on how to do it between 2 localhosts.
Some references:
Preparing for an Upgrade (READ FIRST)
Upgrade using the UI
Upgrade Using Drush
Drush Migrate Commands