User talk:Kaotic/WikiBackup
Add topicAppearance
Latest comment: 14 years ago by Elifarley in topic Using wgReadOnlyFile
Thanks. ^^ --76.65.0.120 23:49, 17 October 2008 (UTC)
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