update to a new template without loosing any data

Look in Tools, Export on the Admin screen. You can specify what to export (posts, images, pages), and then Tools, Import to get the posts into the new site.

This process is different than ‘cloning’ tools (my favorite is WP Clone). Some cloning plugins will allow you to specify only posts/images/whatever.