by Tim Hunt.
If you have upgraded your existing Moodle 2.2 site to Moodle 2.6 then all your content will still be there.
I assume that actually you have made a separate install of Moodle 2.6, which is not the same thing.
See Upgrading for how to upgrade.
If you do want to copy courses between servers, use backup and restore.