Difference between revisions of "Wikibackup"

From Teknologisk videncenter
Jump to: navigation, search
m (New page: == Backup of this wiki == === Locking the database === During backup, the database will be locked using the [http://www.mediawiki.org/wiki/Manual:$wgReadOnly $wgReadOnly] variable in Local...)
 
m
Line 5: Line 5:
 
<pre>
 
<pre>
 
$wgReadOnly = 'Backup operation in progress. Please wait a few minutes.';
 
$wgReadOnly = 'Backup operation in progress. Please wait a few minutes.';
 +
</pre>
 +
=== mysqldump ===
 +
example
 +
<pre>
 +
mysqldump -u USERNAME -pPASSWORD --default-character-set=latin1 wikidb -c > /home/backup/wikidb120209.dump
 
</pre>
 
</pre>

Revision as of 09:03, 12 February 2009

Backup of this wiki

Locking the database

During backup, the database will be locked using the $wgReadOnly variable in LocalSettings.php

$wgReadOnly = 'Backup operation in progress. Please wait a few minutes.';

mysqldump

example

mysqldump -u USERNAME -pPASSWORD --default-character-set=latin1 wikidb -c > /home/backup/wikidb120209.dump