7

We are planning to migrate our existing MediaWiki site to Confluence. But when I searched about it, I came to know about the Universal Wiki Converter(UWC) tool, which is no longer supported or available. So, I am worried as to where to start and how to proceed. We have planned to export all the MediaWiki pages to XML and then import them to confluence.

So, my question here is whether this is a right approach and how can XML can be imported easily to Confluence?

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
Vidhya Hari
  • 81
  • 1
  • 1
  • 3
  • Hey, did you tried this one: https://confluence.atlassian.com/display/DISC/HTML+To+Confluence+Converter . Found at answers: https://answers.atlassian.com/questions/12265453/import-from-mediawiki-to-confluence-5.7 – ppasler Apr 15 '16 at 16:17
  • @ppasler thanks for the links.. Ya, i went through those links. since the uwc isnt supported anymore, i was wondering whether to proceed with the html conversion path.?? – Vidhya Hari Apr 18 '16 at 06:42
  • HTML conversion is a nightmare... I did not know UWC disappeared but this shows how Confluence tends to lock your data, why switch from an open data XML to something else? Anyway, you'll need to tell us how big a use of templates you make etc., to be able to answer. – Nemo Jun 10 '16 at 05:55

2 Answers2

4

Use Markdown as the universal format for import/export. Markdown can be imported or exported to MediaWiki:

Markdown-Wiki

Simple tool for converting wiki 2 markdown and other way round.

Install

Tool expects that you have npm installed on your system.

npm install markdown-wiki

Usage

cat foo.wiki | markdown2wiki > foo.md

and Confluence can render Markdown:

Markdown for Confluence provides macros that render Markdown content on Confluence pages. The content can be entered directly in the body of a the markdown macro or be from an attachment or URL.

or Markdown can be converted to HTML and rendered by Confluence:

npm install markdown-html

markdown-html in.md -o out.html

XML export would require XSLT or some equivalent to convert from the MediaWiki XML Schema to the Confluence XML Schema, if the above is not a viable option.

References

Community
  • 1
  • 1
Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
0

Also it is not officially supported the UWC still works. I managed to migrate a moinmoin-wiki to confluence about a year ago. Still needed lots of manual tweaking and scripting as UWC is more a tool than a ready-to-use solution.

Start here: https://migrations.atlassian.net/wiki/spaces/UWC/overview

Source with build intructions: https://bitbucket.org/appfusions/universal-wiki-converter

linuxlupus
  • 36
  • 3