wiki.techinc.nl/maintenance
2009-05-19 20:55:29 +00:00
..
archives Cleanup for r50567: 2009-05-14 22:43:57 +00:00
dtrace
gearman Assorted minor live patches to command-line scripts. 2009-04-30 05:52:25 +00:00
ibm_db2 * svn:eol-style native for r45755 2009-01-15 10:18:44 +00:00
language (bug 18466) Add note or warning when overruling a move (semi-)protection (patch by Nakon with tweaks by Siebrand) 2009-05-17 17:32:25 +00:00
mssql add some dev notes and other info 2008-05-11 02:20:19 +00:00
ora *Restore oldimage schema changes removed temporarily in r21957 (with some index modifications) 2007-05-31 15:26:15 +00:00
postgres Clean up whitespace, add log_search to Postgres schema. 2009-05-19 20:55:29 +00:00
sqlite * Preserve usertext_timestamp index name for MySQL, prefix it for SQLite. Issues remain on the experimental non-installable DBMSes. 2009-01-15 14:20:28 +00:00
storage Assorted minor live patches to command-line scripts. 2009-04-30 05:52:25 +00:00
.htaccess
addwiki.php Add AbuseFilter to the installer. 2009-05-13 04:03:36 +00:00
apache-ampersand.diff
attachLatest.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
attribute.php Typo; thanks to Splarka 2009-04-03 22:05:47 +00:00
backup.inc * Add XML log dump support 2008-09-18 00:02:57 +00:00
backupPrefetch.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
benchmarkPurge.php +4 docs, -4 @todo's 2008-09-19 18:56:20 +00:00
changePassword.php * Small cleanups 2009-02-01 19:01:10 +00:00
checkAutoLoader.php Fixes for maintenance/checkAutoLoader.php: 2008-08-08 17:34:36 +00:00
checkBadRedirects.php quickie script to look for bad marked redirects 2008-08-09 00:17:00 +00:00
checkImages.php * Fix batching 2009-02-17 02:48:40 +00:00
checkUsernames.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
cleanupCaps.php (bug 18122) Fix fatal require() errors and typo in the README. 2009-03-24 15:03:36 +00:00
cleanupDupes.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
cleanupImages.php Pulling back r45388 "Don't needlessly shy from reuniting lost files with their description pages." 2009-01-07 02:41:03 +00:00
cleanupSpam.php Revert r35178 and normalize User's getID() and setID() methods to prettier getId() and setId() 2008-05-22 16:39:43 +00:00
cleanupTable.inc Made WatchlistCleanup and CapsCleanup extend TableCleanup rather than FiveUpgrade so that they don't need to re-implement cleanup() and runTable() 2009-02-16 19:09:28 +00:00
cleanupTitles.php (bug 16839) cleanupTitles and namespaceDupes shouldn't consider 'Special' or 'Media' valid title targets 2009-01-02 19:52:57 +00:00
cleanupWatchlist.php (bug 18122) Fix fatal require() errors and typo in the README. 2009-03-24 15:03:36 +00:00
clear_interwiki_cache.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
clear_stats.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
commandLine.inc * Fix for r50316 and r50324: require ProfilerStub.php if StartProfiler.php doesn't exist to aviod call to undefined function wfProfileIn() 2009-05-08 08:54:47 +00:00
convertLinks.inc * Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present. 2009-02-05 08:56:35 +00:00
convertLinks.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
convertUserOptions.php Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia). 2009-04-24 01:31:17 +00:00
counter.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
createAndPromote.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteArchivedFiles.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteArchivedFiles.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteArchivedRevisions.inc Per Brion's comment: fix the UI to make clear that revisions are deleted only when the --delete option is passed 2009-04-29 20:34:33 +00:00
deleteArchivedRevisions.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
deleteBatch.php (bug 16376) Mention in deleteBatch.php and moveBatch.php maintenance scripts that STDIN can be used for page list 2009-01-03 16:20:05 +00:00
deleteDefaultMessages.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteImageMemcached.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
deleteOldRevisions.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteOldRevisions.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteOrphanedRevisions.inc.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
deleteOrphanedRevisions.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
deleteRevision.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
Doxyfile * Fixed doxygen warning in Article.php and User.php 2008-11-30 10:10:15 +00:00
dumpBackup.php (bug 18432) Updated documentation for dumpBackup.php (patch contributed by Jidanni) 2009-05-17 19:28:02 +00:00
dumpHTML.php Replaced maintenance/dumpHTML.php with a message pointing to the DumpHTML extension. Deleted subsidiary files. 2008-02-27 06:19:09 +00:00
dumpInterwiki.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
dumpInterwiki.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
dumpLinks.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
dumpSisterSites.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
dumpTextPass.php Fix a silly bug that isn't the mystery dump bug we were looking for, but could result in infinite loop during text pass if it fails just at the right time. 2009-05-06 23:47:31 +00:00
dumpUploads.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
edit.php Re r41198: if you're going to break the interface, you may as well do it properly. Rather than Article::doEdit() returning some random fragment of data that your current application requires, how about we have it return a general, extensible object? 2008-09-25 10:15:19 +00:00
eval.php Use a history file with readline, so that readline history is carried over from one invocation to another 2008-07-22 21:47:53 +00:00
fetchInterwiki.pl
fetchText.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
findhooks.php * Document OutputPageCheckLastModified hook 2008-09-04 20:38:08 +00:00
FiveUpgrade.inc (bug 17478) Fixed a PHP Strict standards error in maintenance/cleanupWatchlist.php 2009-02-13 13:48:13 +00:00
fixSlaveDesync.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
fixTimestamps.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
fixUserRegistration.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
fuzz-tester.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
generateSitemap.php (bug 17640) Mention where the sitemap goes if we don't explicitly specify. Patch by Jidanni. 2009-02-24 16:13:59 +00:00
getLagTimes.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
getSlaveServer.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
importDump.php Tweak report 2008-09-18 21:48:55 +00:00
importImages.inc.php fixed successive extension stripping 2008-12-02 11:19:35 +00:00
importImages.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
importLogs.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
importLogs.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
importTextFile.php Tweak to r47279 -- include final newline to keep the terminal clean :) 2009-02-17 22:06:20 +00:00
importUseModWiki.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
initEditCount.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
initStats.inc * Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present. 2009-02-05 08:56:35 +00:00
initStats.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
installExtension.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
interwiki.sql * update wikicities url, same as wikia now 2009-04-04 19:14:49 +00:00
Makefile Some tweaks to the doxygen doc: 2008-06-25 13:42:01 +00:00
mcc.php avoid E_NOTICE if only one argument is given to the "get" command 2009-03-14 20:09:48 +00:00
mctest.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
moveBatch.php (bug 16376) Mention in deleteBatch.php and moveBatch.php maintenance scripts that STDIN can be used for page list 2009-01-03 16:20:05 +00:00
mwdocgen.php Some tweaks to the doxygen doc: 2008-06-25 13:42:01 +00:00
namespace2sql.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
namespaceDupes.php Assorted minor live patches to command-line scripts. 2009-04-30 05:52:25 +00:00
nextJobDB.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
nukeNS.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
nukePage.inc (bug 8702) Refactor stats updating in nukePage. Now updates edit count and good article count, not just total page count. 2008-11-21 06:46:31 +00:00
nukePage.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
orphans.php * Replace hardcoded '...' as indication of a truncation with the 'ellipsis' message 2009-02-13 19:13:48 +00:00
ourusers.php * Added a special user for nagios 2008-10-24 15:17:57 +00:00
parserTests.inc Add --setversion option to parserTests 2009-05-15 19:23:00 +00:00
parserTests.php Add --setversion option to parserTests 2009-05-15 19:23:00 +00:00
parserTests.txt (bug 16912) Tooltips on images with link= disappear 2009-05-15 19:43:09 +00:00
parserTestsParserHook.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
parserTestsParserTime.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
parserTestsStaticParserHook.php * Revert back to my parser pseudo-branch again. Note: if you feel like reverting this, reverting Parser.php alone to r40010 will work just fine. 2008-08-26 14:37:15 +00:00
patchSql.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
populateCategory.inc * Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present. 2009-02-05 08:56:35 +00:00
populateCategory.php Newline after help message to not mess up terminal 2009-02-16 15:35:04 +00:00
populateLogSearch.inc * Fix comment 2009-05-15 10:16:13 +00:00
populateLogSearch.php Populate log_search during update.php run and store an update status row when we're done. 2009-05-14 23:06:53 +00:00
populateParentId.inc * Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present. 2009-02-05 08:56:35 +00:00
populateParentId.php Moved constant definition to populateParentId.inc, throws an E_NOTICE when used by update.php, thanks to MinuteElectron for reporting it. 2008-05-02 16:28:46 +00:00
preprocessorFuzzTest.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
purgeList.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
purgeOldText.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
purgeOldText.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
README (bug 18122) Fix fatal require() errors and typo in the README. 2009-03-24 15:03:36 +00:00
reassignEdits.inc.php Revert r35178 and normalize User's getID() and setID() methods to prettier getId() and setId() 2008-05-22 16:39:43 +00:00
reassignEdits.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
rebuildall.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
rebuildFileCache.php rm useless output msg 2009-03-12 20:19:44 +00:00
rebuildImages.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
rebuildInterwiki.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
rebuildInterwiki.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
rebuildmessages.php Minor grammar fixes, etc. 2008-07-21 17:06:35 +00:00
rebuildrecentchanges.inc Typofix. Base -> Basic 2009-04-14 01:26:39 +00:00
rebuildrecentchanges.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
rebuildtextindex.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
rebuildtextindex.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
refreshImageCount.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
refreshLinks.inc Fixes for r45514 and r45516: 2009-01-13 23:58:45 +00:00
refreshLinks.php Fixes for r45514 and r45516: 2009-01-13 23:58:45 +00:00
removeUnusedAccounts.inc (bug 14929) Add two command line switches to removeUnusedAccounts.php: 2008-08-11 10:06:54 +00:00
removeUnusedAccounts.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
renameDbPrefix.php renameDbPrefix.php tweaks: corrected script name in help message (this is not updateSpecialPages.php ;) + added spacing 2009-03-29 12:27:59 +00:00
renamewiki.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
renderDump.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
runJobs.php (bug 17620) don't run jobs twice 2009-03-18 02:22:47 +00:00
showJobs.php * Remove unneeded includes 2009-02-05 08:13:57 +00:00
showStats.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
sql.php Don't die horribly from sql.php when making INSERT/DELETE/UPDATE/CREATE TABLE/etc calls that return 'true' instead of a result object. 2008-08-01 21:00:24 +00:00
stats.php Added new line so that it doesn't break output 2008-12-27 19:32:06 +00:00
tables.sql Clean up whitespace, add log_search to Postgres schema. 2009-05-19 20:55:29 +00:00
testRunner.postgres.sql Allow --record option if parserTests.php to work when using Postgres 2007-12-18 15:46:53 +00:00
testRunner.sql * Add experimental recording/reporting mode to parser tests runner, to 2006-11-11 12:33:46 +00:00
undelete.php Fix 12384 : comment on maintenance/*php files 2008-07-19 12:15:07 +00:00
update.php (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
updateArticleCount.inc.php (bug 16632) Make updateArticleCount.inc.php use COUNT instead of numRows(), as suggested by Sean Colombo. 2008-12-16 04:25:22 +00:00
updateArticleCount.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
updateRestrictions.php Tweak r45600: kill the broken page_restrictions columns too 2009-01-18 19:55:01 +00:00
updaters.inc Follow-up r50567: also update PostgreSQL and SQLite schema 2009-05-15 11:34:18 +00:00
updateSearchIndex.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
updateSearchIndex.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
updateSpecialPages.php * Maintain active user count for Special:Statistics (bug 13585) 2008-08-31 19:29:37 +00:00
upgrade1_5.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
userDupes.inc * Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present. 2009-02-05 08:56:35 +00:00
userOptions.inc WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
userOptions.php WARNING: HUGE COMMIT 2008-05-20 17:13:28 +00:00
users.sql
waitForSlave.php Fix 12384 : comment on maintenance/*php files 2008-07-19 12:15:07 +00:00
wikipedia-interwiki.sql fix sql syntax error 2008-07-04 21:39:08 +00:00
wiktionary-interwiki.sql Update 2008-06-11 17:44:47 +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

	createAndPromote.php
	Create a user with administrator (and optionally, bureaucrat) permissions

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	edit.php
	Edit a page to change its content

	findhooks.php
	Find hooks that aren't documented in docs/hooks.txt

	importDump.php
	XML dump importer
	
	importImages.php
	Import images into the wiki
	
	importTextFile.php
	Import the contents of a text file into a wiki page

	moveBatch.php
	Move a batch of pages 

	namespaceDupes.php
	Check articles name to see if they conflict with new/existing namespaces

	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

	stats.php
	Show all statistics stored in memcached

	undelete.php
	Undelete all revisions of a page

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

	updateRestrictions.php
	Update pages restriction to the new schema

	userOptions.php
	Change user options