Manual:Backing up a wiki/Duesentrieb's backup script

Script originally created by User:Duesentrieb: MediaWiki backup


 * Modified by User:Kaotic to add the ability for the script to place the wiki into read only mode during the database dump and then restore access after the dump has been completed.


 * User:Megam0rf added a few lines to circumvent Kaotic's problem with ?> at the end of the LocalSettings.php which had to be removed prior to running the script.


 * User:Robkam edited option for default character set, and set it to binary, and other minor tweaks.
 * User:Dangoakachan fork a new backup script, pass options in command line, clone it from github.
 * Modified by Christian Estelmann: added '-e' to echo-commands to enable interpretation of backslash escapes
 * User:GregRundlett command line version compatible with ~/.my.cnf and includes VCS content fork me on github

Note* Be sure to replace --user=XXXX --password=XXXX with your user/pass, unless your credentials are in .my.cnf.

'Check your wiki's LocalSettings.php for the value of parameter --default-character-set''. If this is wrong the wiki database may fail to restore properly.'''