TracWiki2DokuWiki is a PHP script to convert a trac wiki to dokuwiki. Linked attachments are also supported.
More information is available at: https://github.com/koppor/TracWiki2DokuWiki