Import/Export

Version 34.1 by Vincent Massol on 2020/08/17

This feature allows you to export one or several pages from your wiki into a XAR file (XWiki ARchive) or to import one or several pages from an existing XAR file. This is useful for moving wiki pages from one instance to another or to perform lightweight backup of your wiki pages.

This feature doesn't replace a proper backup.

Importing wiki pages

This feature is brought by the Administration Application and is documented in the Import section.

Exporting wiki pages

This feature is brought by the Administration Application and is documented in the Export section.

Customizing a XAR

When doing an export, XWiki pages are saved using the XAR format. A typical XAR created when doing an export will include all the pages on your XWiki instance. However you can control this using a custom Export URL.

That said, it is also possible to create a XAR that will include only the pages you want. This is useful when you want to export only the pages of a specific application for example. Here are the steps:

  • Unzip the file
  • Keep the pages you want to put in your archive
  • Edit package.xml to delete the pages you do not want to be in the archive
  • Zip together the modified package.xml file and the pages you want to put together in your archive, naming the file "MyArchive".xar where "MyArchive" is the actual name you want to give it
  • You're done! You can now import this specific set of pages to any XWiki instance

In the future XWiki will offer the ability to do selective exports natively. For the moment you'll need to install the Multipage Export Extension.

XAR Format

See XAR Format specifications.

Tags:
   

Get Connected