Extension:Backup & Restore

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Backup & Restore

Release status: unstable

Implementation Special page
Description A special page for backing up and restoring multiple wikis on a server
Author(s) User:Nad
Version 0.0.0 (2007-06-10)
Download see text

NOTE: This extension is still under development and not ready for use yet.

Contents

[edit] Overview

One of the problems we've had over the last few years with backups is that extracting information out of them is difficult, and usually involves having to manually set up a new wiki and configure it's LocalSettings to access the old database. This extension is the combination of our previous bot-based backup script and a new backup restoring solution.

When restoring from a backup the specifics of the wiki such as database name, table-prefix and domain name can be configured first so that the newly unpacked wiki won't conflict with any existing ones.

These features make quite a good overall wiki family tool even though it's main reason for development is for looking after the backups.

[edit] Usage

All initiating of backup-related jobs is done from the Backup special-page which display a list of all wikis in the database and all backup files and allows editing of any changeable fields in the lists. Once changes have been made, the "Next" button is clicked which produces a list of all the jobs required to make the selected changes happen. At this point clicking "Queue" will add the jobs to the queue.

The job queue in this case is not the MediaWiki job queue, but another queue specific to this extension, which the Backup.pl script processes each time it runs from its regular schedule.

[edit] Backing up

[edit] Restoring from backup

extension: section

[edit] Using backups as templates for creating wikis

[edit] Installation

The source consists of two files which need to be downloaded:

Backup.pl is a Perl script which does the actual work. If using a Windows server you can get Perl from www.activeperl.org and add the execution to you system scheduler from control panel. On Linux you'll already have Perl and you can add the script to your crontab with a line similar to the following to call the script every hour.

0 * * * * /var/www/wiki/extensions/Backup/Backup.pl

[edit] Configuration

  • location of backups

[edit] Articles and extensions related to managing multiple wikis

Personal tools