User talk:Kaotic/WikiBackup

From mediawiki.org
Jump to navigation Jump to search

Thanks. ^^ --76.65.0.120 23:49, 17 October 2008 (UTC)[reply]

Using wgReadOnlyFile[edit]

Suggestion: append this to your LocalSettings.php file:

$wgReadOnlyFile="$IP/read-only-message";

Then, change your script like this:

echo
echo "Putting the wiki in Read-only mode..."
echo "Backup in progress. Access will be restored shortly." > "$wikidir"/read-only-message
...
echo "Bringing the wiki out of Read-only mode..."
rm "$wikidir"/read-only-message


--Elifarley 00:19, 26 July 2010 (UTC)[reply]