Short version:
If you have a CRM 4 on-premise solution, you need to upgrade this to CRM 2011, install latest rollup (today rollup 11), and export any customizations from the CRM 2011 solutions, and then import your customizations into your CRM online solution. If you have
data that shall must be available, you have to create a tool for transfering these data to CRM online or use the tool Scribe that is probably the most popular tool for this purpose.
Also take a look at this:
Roar Jørstad aka sveroa
Senior Consultant, EVRY as
Blog: Notebook, trick & tips
Please mark as answer or helpful if my post is useful