Rollback tool
Revert XWiki documents to a previous state. |
Type | XAR |
Category | Application |
Developed by | |
Active Installs | 25 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
This tool allows you to undo your screw-ups in a matter of just a few clicks.
The tool is available on the page Admin.Rollback (or URL https://<server>/xwiki/bin/view/Admin/Rollback).
Input
Source
This represents the source from which the document list to be rolled back will be extracted.
See below for a list of example inputs.
Rollback example for all documents from the Sandbox space:
Rollback example for the page Sandbox.WebHome:
Source type
Source type | Description | Source example |
---|---|---|
xar | XAR file which is attached to document of is present on the filesystem | attach:filename.xar |
hql query | Hibernate query | , BaseObject as obj where doc.fullName = obj.name and obj.className = 'XWiki.XWikiUsers' |
comma separated list | Comma separated list of documents | Sandbox.TestPage1, Sandbox.TestPage2, Sandbox.TestPage3 |
Method
Method name | Description |
---|---|
first known version | Rollback to the oldest version in the current history of the document |
previous version | Rollback to the previous version |
before date | Rollback to the first version before the specified date |
Include minor versions
Take into consideration minor versions in the document history or just stick to the major ones.
Delete if there's no criteria match
If the selected criteria returns no results for a document, delete it.
For example if the criteria is "before 2015/02/15 15:00" and the document has been created on "2015/04/13 12:00", it will be deleted.
Output
List documents
After listing the documents, you can select which ones you actually want to roll back by looking at their status messages and the diff between the current revision and the proposed revision.
Perform rollback
After the rollback is performed, the table will show the documents in their post-rollback state.