User talk:Flominator/Backup MW

Hi i adjusted the script it does the same, but without storing sensitive data like user name and password in files. Also the backup directory name is not guessable. Otherwise one could steal a site, data and files. This script gets the username and password from the LocalSettings.php. Have a look at: (UNIX only)


 * This is the symbol for the questions.

--76.65.3.213 05:08, 7 October 2008 (UTC)
 * Where do I put the files "backup.sh", "backup.php", and "import.bat"?
 * Good question. In the root folder of your MediaWiki installation. --Flominator 14:31, 7 October 2008 (UTC)
 * Thank you! --76.65.3.213 23:11, 7 October 2008 (UTC)


 * I have another question. Are the files and database also put into the zip? --76.65.3.213 23:17, 7 October 2008 (UTC)
 * yes, the database is included and the files LocalSettings.php and the ones in extensions and images. --Flominator 06:58, 8 October 2008 (UTC)
 * Thanks. ^_^ By the way, can anyone access the backup.php can do a backup? --76.69.137.242 03:21, 9 October 2008 (UTC)
 * Depends on your configuration, but usually - yes. --Flominator 07:51, 9 October 2008 (UTC)
 * Can they access the zip file also? --76.65.3.32 02:57, 16 October 2008 (UTC)
 * If it is created below the Document Root (which the script does) - yes. --Flominator 13:56, 16 October 2008 (UTC)

"-u $USER -p$PASSWORD"
 * Not sure if the no space in the -p switch is a typo. :/
 * No, I think it isn't. --Flominator 11:38, 12 October 2008 (UTC)


 * having problems with the paths in localsettings.php when imported to windows xampp. it does not look like your script takes care of the linux references to files and extensions. am i missing something? Siliconsoul 17:31, 4 January 2010 (UTC)

Adjusted script
The script didn't work for me and I found the remove if > 5 to be too dangerous. Here is the new one:

Fuss 23:16, 28 February 2010 (UTC)