User talk:Kaotic/WikiBackup

Latest comment: 14 years ago by Elifarley in topic Using wgReadOnlyFile

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

Return to the user page of "Kaotic/WikiBackup".