Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MediaWiki to Confluence Migration

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?

like image 485
Vidhya Hari Avatar asked Apr 15 '16 09:04

Vidhya Hari


People also ask

What is meant by confluence migration?

The Confluence Cloud Migration Assistant is an app that helps you easily move content, users, and groups from Confluence Server or Data Center to Confluence Cloud. Built and maintained by Atlassian, the app is free to install and use.

Are wiki and Confluence same?

The biggest difference between Confluence and other wikis, is that anyone can create content in Confluence – no special markup or syntax necessary. The Confluence editor makes it easy to format pages with layouts, make them visual with images and videos, or dynamic with macros.


Video Answer


1 Answers

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

  • Markdown for Confluence

  • Confluence Command Line Interface

  • UPM CLI Reference

  • markdown-wiki: A Bidirectional WikiText to Markdown converter

  • markdown-html: Command line tool for markdown to html conversion

  • Confluence Storage Format - Atlassian Documentation

  • Confluence to Markdown Converter

  • Markdown Implementations - Markdown Community Group

  • Extension Matrix/AllExtensions - MediaWiki

  • Microsoft Word Macros - MediaWiki

  • MarkDoc

like image 62
Paul Sweatte Avatar answered Oct 02 '22 14:10

Paul Sweatte