Hi Tschinz,
using the upgrade-plugin is the easiest method:
https://www.dokuwiki.org/plugin:upgrade
Create a backup before you start - simply copy the whole dokuwiki-folder to another place. Then do the upgrade. If the upgrade fails, you can delete the corrupt dokuwiki and simply copy back your backup.
Greetings,
Christoph