cogExpose script oriented API to manipulate instance wiki stream
Developed by

XWiki Development Team

0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager


Expose script oriented API to manipulate instance wiki stream


Export the current wiki into a XAR file

{{template name="job_macros.vm"/}}

#set($void = $inputProperties.setEntities($entities))

## Export only the current wiki
#set($entities = $services.filter.instance.newEntityReferenceSet())
#set($void = $entities.includes("wiki:$xcontext.database"))
#set($inputProperties = $services.filter.instance.newInstanceInputProperties())

## Indicate the target XAR file name
#set($outputProperties = {
'target' : 'file:/home/tuska/file.xar'

## Start the export
#set($job = $services.filter.instance.startExport('xwiki+xar/1.3', $outputProperties, $inputProperties))

## Wait for the job to finish

## Print log

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.


Dependencies for this extension (org.xwiki.platform:xwiki-platform-filter-instance-script 13.10.2):


Get Connected