User:Kaotic/WikiBackup

script originally created by User:Duesentrieb:

I've added 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.

if your LocalSettings.php has a ?> at the end be sure to remove it as this script simply adds the read only option to the end of the file then removes the last line of the file afterwords, I know this is probably not the best way to accomplish this and would welcome any suggestions to streamline this even further. Thanks!

See the discussion page for a suggestion using wgReadOnlyFile.

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