Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

Backup Manager


Backup Manager

These scripts allow you to create a handy interface for managing Confluence nightly backups via the web browser...

These three scripts work together to provide:

  • A macro which lists available backups and any associated options
  • A servlet to download backup files
  • A servlet to delete backup files

The scripts also act as a really useful tutorial because the show a number of extremely useful tricks that can be done with Scriptix. For example, the "Download" and "Delete" links only appear in the list of backups if the corresponding servlet scripts are installed.

Requirements

None at present.

Script: backupList

This script lists available backups and provides links to the servlet scripts for downloading or deleting backups.

Name: [backupList|^export-backupList.xml]
Author(s): Dan Hardiker
Scriptix Version: 1.1.2 or above
Scripting Engine: Mozilla Rhino
Components: bootstrapManager
Vectors: Wiki Macro

View source...

To display the list of backups, just add this to a page in your wiki:

{scriptix:id=backupList}{scriptix}

Script: backupDownloadServlet

This simple servlet streams the requested backup file. If you don't install this script the "Download" option will not be shown in the output of the backupList script.

Name: [backupDownloadServlet|^export-backupDownloadServlet.xml]
Author(s): Dan Hardiker
Scriptix Version: 1.1.2 or above
Scripting Engine: Mozilla Rhino
Components: bootstrapManager
Vectors: Simple Servlet

View source...

Script: backupDeleteServlet

This simple servlet deletes the specified backup file. If you don't install this script the "Delete" option will not be shown in the output of the backupList script.

Name: [backupDeleteServlet|^export-backupDeleteServlet.xml]
Author(s): Dan Hardiker
Scriptix Version: 1.1.2 or above
Scripting Engine: Mozilla Rhino
Components: bootstrapManager
Vectors: Simple Servlet

View source...

Known issues

  • The backupList script makes the assumption that Confluence is running as root. If you run Confluence in a subfolder, the URL paths will need changing.

To-Do

  • Use more dynamic path so if Confluence is not root the extra folder path elements get added to the URL.
Toggle Sidebar
Added by Guy Fraser on Jun 15, 2007 20:33, last edited by Guy Fraser on Jun 15, 2007 22:18

Hi, it seems that the links to the xml files are broken.  I just see text like this, which I can't click on to download anything:
[backupDeleteServlet|^export-backupDeleteServlet.xml]

 Also, is there some Java source code that we're not seeing for the servlet plugins?

 Thanks


Adaptavist Theme Builder Powered by Atlassian Confluence