wiki.techinc.nl/maintenance
2006-03-28 21:56:12 +00:00
..
archives Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
dtrace some example dtrace scripts 2005-08-15 01:46:19 +00:00
mysql5 Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
oracle trackbacks table for oracle 2005-08-02 13:49:01 +00:00
storage replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1) 2006-03-12 14:35:03 +00:00
.htaccess
addwiki.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
alltrans.php * Trivial script to print out all avalible messages, useful for other scripts 2005-06-24 02:19:13 +00:00
apache-ampersand.diff
attachLatest.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
attribute.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
backup.inc * Fix --report interval option for dumpTextPass 2006-02-19 23:00:00 +00:00
backupPrefetch.inc * Fix backup dump text prefetch for XMLReader constant changes in PHP 5.1 2006-01-22 04:05:30 +00:00
benchmarkPurge.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
build-intl-wiki.sql replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1) 2006-03-12 14:35:03 +00:00
changePassword.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
changeuser.sql Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00
checktrans.php revert, wrong file 2005-07-06 22:33:08 +00:00
checkUsernames.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
cleanupCaps.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
cleanupDupes.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
cleanupDupes.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
cleanupSpam.php revert accidentally committed live hack 2006-02-28 05:34:36 +00:00
cleanupTitles.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
cleanupWatchlist.php * (bug 4147) Added cleanupWatchlist.php to clear out bogus watchlist entries 2006-02-08 02:59:56 +00:00
clear_interwiki_cache.php Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
clear_stats.php Job::pop() may occasionally return false when there are actually more jobs remaining, but there is too much contention to efficiently delete one. runJobs can keep trying, as opposed to apache threads which should stop in this case. 2006-02-28 05:24:52 +00:00
commandLine.inc revert accidentally committed live hack 2006-02-28 05:34:36 +00:00
convertLinks.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
convertLinks.php
counter.php * A function for pretty counts 2005-11-01 19:17:31 +00:00
database.sql
delete-idle-wiki-users.pl perl script for deleting user accounts with no contributions, by Ralf Baechle 2005-06-25 14:24:08 +00:00
deleteImageMemcached.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
deleteOldRevisions.inc * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
deleteOldRevisions.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
diffLanguage.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
dumpBackup.php * Fix --report interval option for dumpTextPass 2006-02-19 23:00:00 +00:00
dumpHTML.inc Respect database prefix in dumpHTML.inc 2006-01-17 21:57:14 +00:00
dumpHTML.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpInterwiki.inc When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons). 2006-01-21 13:25:41 +00:00
dumpInterwiki.php somewhatdirtyhack: build constant slightly compact database of interwiki prefixes 2006-01-21 13:05:43 +00:00
dumpLinks.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
dumpMessages.php restoring 2005-05-16 06:47:24 +00:00
dumpReplayLog.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpTextPass.php * Fix --report interval option for dumpTextPass 2006-02-19 23:00:00 +00:00
duplicatetrans.php * Adding a tool to find duplicate translations 2005-08-10 22:11:09 +00:00
entities2literals.pl Fix 4249 : typo 2005-12-11 19:56:44 +00:00
eval.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
fetchInterwiki.pl * rmed redundant code 2005-04-06 17:53:58 +00:00
FiveUpgrade.inc replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1) 2006-03-12 14:35:03 +00:00
fixSlaveDesync.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
generateSitemap.php * Fixed fatal error introduced by brion in version 1.20, wfDie() has not been 2006-03-11 21:25:03 +00:00
importDump.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
importLogs.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
importLogs.php * (bug 1103) Fix up redirect handling for images, categories 2006-01-13 00:29:20 +00:00
importPhase2.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
importUseModWiki.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
InitialiseMessages.inc * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
initStats.php Fix problem reported on mailing list where re-initialising stats didn't work (can't insert duplicate rows with the same id field) 2006-01-16 13:03:26 +00:00
interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
lang2po.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
langmemusage.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
languages.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
liveCmdLine.inc * (bug 2569) Use PATH_SEPARATOR instead of trying to guess based on DIRECTORY_SEPARATOR (was wrong on NetWare) 2005-11-10 08:06:04 +00:00
Makefile filename error 2005-08-15 12:54:55 +00:00
mcc.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
mctest.php Was never committed to HEAD for some reason 2006-01-28 08:22:24 +00:00
moveBatch.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
mwdocgen.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
mwdoxygen.cfg Unsupported doxygen configuration: 2005-08-11 00:28:51 +00:00
namespace2sql.php Fix #4418: remove $id and $header that causes conflicts 2006-01-03 11:59:39 +00:00
namespaceDupes.php * Docucmentaton: Fixed speling eror 2006-01-13 14:34:02 +00:00
nukePage.inc Clean up recent changes entries when a page is nuked 2006-02-26 02:07:50 +00:00
nukePage.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
orphans.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
ourusers.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTests.inc Fix category test routine, unlink two more dirs 2006-03-24 16:53:32 +00:00
parserTests.php Refactor parserTests so the class can be used by another script 2005-07-06 16:17:02 +00:00
parserTests.txt * Fixed & disabled the "Sanitizer: Validating the contents of the id attribute" 2006-03-26 03:24:43 +00:00
parserTestsParserHook.php * Renamed functions to make more sense 2006-02-27 04:04:44 +00:00
parserTestsParserTime.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTestsStaticParserHook.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
portal.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
purgeOldText.inc Fix oversight - was using $tbl_text instead of $tbl_txt 2006-02-04 17:38:42 +00:00
purgeOldText.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
README Extend documentation on maintenance scripts 2006-03-28 02:38:48 +00:00
reassignEdits.inc Maintenance script to reassign edits from one user to another 2006-01-26 21:41:40 +00:00
reassignEdits.php Maintenance script to reassign edits from one user to another 2006-01-26 21:41:40 +00:00
rebuildall.php typo 2005-09-17 07:52:33 +00:00
rebuildImages.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildInterwiki.inc http/https only please 2006-02-09 01:48:24 +00:00
rebuildInterwiki.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildMessages.php A couple quick cur->page fixes. moveCustomMessages needs major overhaul 2005-01-29 07:40:23 +00:00
rebuildrecentchanges.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildrecentchanges.php
rebuildtextindex.inc * Extra newline for pretty output 2005-11-25 06:38:12 +00:00
rebuildtextindex.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
recount.sql Reset the additional fields; committing live hack from Wikimedia 2005-08-17 07:52:21 +00:00
redundanttrans.php * Removed a redundant variable by the name of 'redundant' from this redundancy 2005-06-21 01:31:16 +00:00
refreshImageCount.php First set to NULL so that it changes on the master 2006-03-28 21:56:12 +00:00
refreshLinks.inc * Added externallinks table, to track links to arbitrary URLs 2006-01-26 13:29:14 +00:00
refreshLinks.php Don't use tidy. Command line option to specify the end ID. Clear the link cache after each article to keep memory usage down. 2006-01-26 11:25:26 +00:00
removeUnusedAccounts.php * Comment userFunctions.inc 2006-01-18 01:29:07 +00:00
runJobs.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
splitLanguageFiles.inc * s~ +$~~ 2006-01-07 13:09:30 +00:00
splitLanguageFiles.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
stats.php live extensions to statistics 2005-12-26 13:11:25 +00:00
tables.sql Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
transstat.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
trivialCmdLine.php * Fixed up the trivial command line example so that it doesn't crash in a 2005-05-25 04:14:19 +00:00
update.php Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
updaters.inc Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
updateSearchIndex.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
updateSearchIndex.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
updateSpecialPages.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
upgrade1_5.php * (bug 2583) Add --missinig option on rebuildImages.php to add db entries 2005-06-28 21:50:26 +00:00
userDupes.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
userDupes.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
userFunctions.inc Include deleted edits in the CountEdits support function; will affect removeUnusedAccounts script 2006-01-26 18:07:34 +00:00
users.sql Don't touch the administrator account! Bug 5043. 2006-03-02 02:21:12 +00:00
wikipedia-interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
wiktionary-interwiki.sql Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00

== MediaWiki Maintenance ==

The .sql scripts in this directory are not intended to be run standalone,
although this is appropriate in some cases, e.g. manual creation of blank tables
prior to an import.

Most of the PHP scripts need to be run from the command line. Prior to doing so,
ensure that the LocalSettings.php file in the directory above points to the
proper installation.

Certain scripts will require elevated access to the database. In order to
provide this, first create a MySQL user with "all" permissions on the wiki
database, and then place their username and password in an AdminSettings.php
file in the directory above. See AdminSettings.sample for specifics on this.

=== Brief explanation of files ===

A lot of the files in this directory are PHP scripts used to perform various
maintenance tasks on the wiki database, e.g. rebuilding link tables, updating
the search indices, etc. The files in the "archives" directory are used to
upgrade the database schema when updating the software. Some schema definitions
for alternative (as yet unsupported) database management systems are stored
here too.

The "storage" directory contains scripts and resources useful for working with
external storage clusters, and are not likely to be particularly useful to the
vast majority of installations. This directory does contain the compressOld
scripts, however, which can be useful for compacting old data.

=== Maintenance scripts ===

As noted above, these should be run from the command line. Not all scripts are
listed, as some are Wikimedia-specific, and some are not applicable to most
installations.

	changePassword.php
	Reset the password of a specified user

	cleanupSpam.php
	Mass-revert insertion of linkspam

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	dumpHTML.php
	Produce an HTML dump of a wiki

	importDump.php
	XML dump importer

	nukePage.php
	Wipe a page and all revisions from the database

	reassignEdits.php
	Reassign edits from one user to another

	rebuildImages.php
	Update image metadata records

	rebuildMessages.php
	Update the MediaWiki namespace after changing site language

	rebuildtextindex.php
	Rebuild the fulltext search indices

	refreshLinks.php
	Rebuild the link tables

	removeUnusedAccounts.php
	Remove user accounts which have made no edits

	runJobs.php
	Immediately complete all jobs in the job queue

	update.php
	Check and upgrade the database schema to the current version