User talk:Kaotic/WikiBackup

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

Using wgReadOnlyFile
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)