Difference between revisions of "Wikibackup"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 1: Line 1:
 
== Backup of this wiki ==
 
== Backup of this wiki ==
=== Locking the database ===
+
=== Locking the database ===
During backup, the database will be locked using the [http://www.mediawiki.org/wiki/Manual:$wgReadOnly $wgReadOnly] variable in LocalSettings.php
 
  
<pre>
+
During backup, the database will be locked using the [http://www.mediawiki.org/wiki/Manual:$wgReadOnly $wgReadOnly] variable in LocalSettings.php
$wgReadOnly = 'Backup operation in progress. Please wait a few minutes.';
+
<pre>$wgReadOnly = '&lt;b&gt;Backup operation in progress.&lt;/b&gt; Please wait a few minutes.';
 
</pre>
 
</pre>
 +
 
=== mysqldump ===
 
=== mysqldump ===
 
example
 
example

Revision as of 11:53, 14 February 2009

Backup of this wiki

Locking the database

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

$wgReadOnly = '<b>Backup operation in progress.</b> Please wait a few minutes.';

mysqldump

example

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