If the old Dokuwiki can still run on your server configuration, then you could upgrade it in place.
If not, you can set up a new wiki and then copy the old wiki's data files into it and rebuild the search index.
See:
https://www.dokuwiki.org/install:upgrade