wiki.techinc.nl/maintenance
Asier Lostalé 2f1a5977a2 generateSitemap can now optionally skip redirects
Slightly enhanced on commit.

Patchset2:
 - get ride of unneeded arguments passed to addOption()
 - rename $redirects to $skippedRedirects. Easier to search.
 - easier to read conditional test of page_is_redirect

Change-Id: I4ae528a584c5a9d73b615a6281d75b14d056e5e7
2012-04-06 13:04:03 -07:00
..
archives Reduced file journal index bloat by removing indexes that would only be 2012-04-03 17:26:04 -07:00
benchmarks Fix doc for maintenance/benchmarks 2012-02-08 16:49:53 +00:00
cssjanus
dev Security paranoia, reject requests to router.php that aren't from the cli-server sapi. 2012-03-20 22:58:34 +00:00
hiphop Shut up build script about not having LocalSettings. You dont actually need it for this 2011-09-01 14:09:50 +00:00
ibm_db2 Fixes to address MaxSem's comment on r106480 regarding DB2 tables.sql syntax, indentation, and capitalization: 2011-12-17 15:59:21 +00:00
language "Show Changes" on default messages shows now diff against default 2012-04-05 21:58:00 +02:00
locking Fixing up undefined types in maintenance documentation 2012-02-09 21:08:06 +00:00
mssql (bug 29475) Remove "trackback" feature entirely from core. This has been disabled-by-default since its inception and nobody uses it. 2011-11-23 17:14:03 +00:00
oracle * Oracle schema update to latest (tested with phpunit) 2012-01-24 09:48:26 +00:00
postgres Postgres updater: add config table, adjust us_image_bits type 2012-04-04 09:54:53 -04:00
sqlite/archives Can someone standardi[sz]e SQL already!? 2012-03-06 00:26:48 +00:00
storage * (bug 34735) Updated compressOld.php documentation to mention the different usages of -s and -n parameters depending on compression type 2012-03-20 10:07:51 +00:00
term Move terminal colorers classes in their own file 2011-11-29 12:17:55 +00:00
.htaccess
7zip.inc
attachLatest.php Use WikiPage instead of Article to call updateRevisionOn() 2011-12-26 16:28:56 +00:00
backup.inc Database dependency injection for BackupDumpers 2012-04-03 12:56:59 +02:00
backupPrefetch.inc Remove some unused getting of non existent arguments 2011-10-18 17:31:54 +00:00
backupTextPass.inc Database dependency injection for BackupDumpers 2012-04-03 12:56:59 +02:00
cdb.php Add cdb.php for inspecting cdb cache files. Format is stolen from mcc.php 2011-04-29 22:08:58 +00:00
changePassword.php (bug 26854) Invalid user names go unchecked. Applied most of the patch submitted by Søren Løvborg, checking for null return values from User::newFromName() 2011-11-20 10:55:58 +00:00
checkAutoLoader.php
checkBadRedirects.php Update output language. 2011-03-17 09:05:34 +00:00
checkImages.php Remove evil @ 2011-08-30 20:44:33 +00:00
checkSyntax.php (bug 35749) Update checkSyntax.php to use Git 2012-04-06 00:36:39 -04:00
checkUsernames.php Fix $$ from r85379 2011-04-04 22:34:32 +00:00
cleanupAncientTables.php Work in progress (can kill another patch hanging around in my working copy) 2012-02-10 00:49:56 +00:00
cleanupCaps.php * Use User::newFromName() instead of calling setName() on an existing object 2011-12-28 19:49:44 +00:00
cleanupImages.php Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback() 2012-02-28 18:41:36 +00:00
cleanupRemovedModules.php
cleanupSpam.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
cleanupTable.inc * Use User::newFromName() instead of calling setName() on an existing object 2011-12-28 19:49:44 +00:00
cleanupTitles.php Use LinkCache::singleton()->clear() instead of using a local variable so that I can see what LinkCache::singleton() will be used for directly in grep 2011-12-21 18:46:39 +00:00
cleanupUploadStash.php Appending a newline at the end of the message results in a much nicer console display 2012-03-05 21:14:10 +00:00
cleanupWatchlist.php
clear_interwiki_cache.php
clear_stats.php Cleanup to statistics: 2012-01-23 16:27:13 +00:00
commandLine.inc Fix typo in SpecialVersion 2012-01-12 22:14:56 +00:00
compareParsers.php Unbreak multiple maintenance scripts 2011-06-26 15:40:14 +00:00
convertLinks.php
convertUserOptions.php (bug 32508) clean up update.php messages 2011-12-08 10:04:59 +00:00
createAndPromote.php Fix broken --sysop flag in r87480: it was triggering the bureaucrat right instead, and createAndPromote.php couldn't be used to create sysops at all 2011-05-14 14:20:18 +00:00
deleteArchivedFiles.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
deleteArchivedFiles.php
deleteArchivedRevisions.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
deleteArchivedRevisions.php
deleteBatch.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
deleteDefaultMessages.php Fix newline in the message per CR 2012-03-22 01:03:45 +01:00
deleteImageMemcached.php
deleteOldRevisions.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
deleteOrphanedRevisions.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
deleteRevision.php
deleteSelfExternals.php Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback() 2012-02-28 18:41:36 +00:00
doMaintenance.php revert r102636 2011-11-24 09:41:54 +00:00
Doxyfile Disable callgraphs for the time being 2012-03-18 20:10:47 +00:00
dumpBackup.php warn that dumpBackup does not actually backup the wiki! 2012-03-07 10:07:32 +00:00
dumpIterator.php Change usages of $wgUser->getSkin() in special pages to use $this->getSkin() 2011-07-01 02:25:19 +00:00
dumpLinks.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
dumpSisterSites.php
dumpTextPass.php TextPassDumper -> backupTextPass.inc 2012-04-03 12:55:08 +02:00
dumpUploads.php No current need for an alias to getPath() 2011-05-04 18:34:50 +00:00
edit.php Use WikiPage instead of Article to call doEdit() 2011-12-29 18:51:23 +00:00
eval.php Revert r108777 (making eval subclass maintenance). eval's supposed to be in the global context. See r54839 2012-01-14 22:21:30 +00:00
fetchText.php Add, update, tweak documentation 2011-10-26 03:45:13 +00:00
findHooks.php Added missing directories to findHooks.php and missing quote in hooks.txt that made LoginAuthenticateAudit show up as undocumented when running findHooks.php 2012-02-12 19:18:36 +00:00
fixDoubleRedirects.php Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely. 2011-05-17 22:03:20 +00:00
fixExtLinksProtocolRelative.php Add a newline, the below isn't too readable 2011-12-13 16:51:24 +00:00
fixSlaveDesync.php Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback() 2012-02-28 18:41:36 +00:00
fixTimestamps.php
fixUserRegistration.php
formatInstallDoc.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
fuzz-tester.php Fixing up undefined types in maintenance documentation 2012-02-09 21:08:06 +00:00
generateSitemap.php generateSitemap can now optionally skip redirects 2012-04-06 13:04:03 -07:00
getLagTimes.php
getSlaveServer.php Improve documentation 2012-02-02 20:19:20 +00:00
getText.php
importDump.php Fixed reporting in importDump.txt 2012-01-11 10:38:25 +00:00
importImages.inc Fixing up undefined types in maintenance documentation 2012-02-09 21:08:06 +00:00
importImages.php The if should check $commentText, not $f, which is always set in this branch. 2012-01-27 21:06:00 +00:00
importSiteScripts.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
importTextFile.php * Use WikiPage instead of Article to call doEdit() 2012-01-15 12:30:14 +00:00
initEditCount.php Merge r86398 into the old wfWaitForSlaves. Update core calls. 2011-04-20 00:12:06 +00:00
initStats.php Fix missing parameter to cacheUpdate 2011-03-30 18:34:38 +00:00
install.php * (bug 30062) Add $wgDBprefix option to cli installer 2011-11-11 00:05:04 +00:00
interwiki.list Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
interwiki.sql Alphabetically sort the interwikis. 2012-04-02 19:56:26 +02:00
jsparse.php Remove some unused getting of non existent arguments 2011-10-18 17:31:54 +00:00
lag.php
Maintenance.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
Makefile man page help pages generation 2011-11-03 14:01:00 +00:00
mcc.php
mctest.php Add braces 2012-01-22 00:58:47 +00:00
mergeMessageFileList.php Bye, bye $wgExtensionAliasesFiles (deprecated in 1.16). 2011-12-25 23:09:26 +00:00
migrateUserGroup.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
minify.php Fixup a couple more undefined variables 2011-03-30 19:44:39 +00:00
moveBatch.php More __METHOD__ into db related methods 2012-02-24 17:00:52 +00:00
mwdocgen.php Fix switch fall through 2012-03-19 15:25:22 +00:00
namespaceDupes.php Normalise casing of getArticleID used in core 2012-03-11 18:54:55 +00:00
nextJobDB.php Fix doxygen docs before REL1_19 branching 2012-02-01 20:53:38 +00:00
nukeNS.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
nukePage.php Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback() 2012-02-28 18:41:36 +00:00
orphans.php * Use WikiPage instead of Article to call updateRevisionOn() 2012-01-16 21:54:24 +00:00
parse.php Fix minor issue from r112988 2012-03-05 16:38:55 +00:00
patchSql.php
populateCategory.php Rm old options from commandLine.inc days 2011-09-08 03:13:31 +00:00
populateImageSha1.php In populateImageSha1.php: 2012-02-29 22:45:17 +00:00
populateLogSearch.php Tweaks to LoggedUpdateMaintenance: 2011-09-08 15:52:00 +00:00
populateLogUsertext.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
populateParentId.php Fix comment blocks that start /* to /** 2011-10-11 18:30:50 +00:00
populateRevisionLength.php Set batch size in PopulateRevisionLength 2011-10-27 18:32:52 +00:00
populateRevisionSha1.php Minor followup to r111795, make doSha1LegacyUpdates return it's count value so it can be added to the count of archive rows 2012-03-06 19:21:07 +00:00
preprocessDump.php Unbreak multiple maintenance scripts 2011-06-26 15:40:14 +00:00
preprocessorFuzzTest.php Change usages of $wgUser->getSkin() in special pages to use $this->getSkin() 2011-07-01 02:25:19 +00:00
protect.php Cleanup a few unused globals 2012-02-16 02:35:48 +00:00
proxy_check.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
pruneFileCache.php Comments, braces, explicit member variables 2011-11-16 13:22:03 +00:00
purgeDeletedFiles.php Ported changes from r110601 2012-02-02 19:33:36 +00:00
purgeList.php enable purge of HTTPS URLs 2012-02-14 20:20:56 +00:00
purgeOldText.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
purgeOldText.php
purgeParserCache.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
purgeStaleMemcachedText.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
README
reassignEdits.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
rebuildall.php
rebuildFileCache.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
rebuildImages.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
rebuildLocalisationCache.php Update core usage of getLanguageName[s]. 2012-03-08 20:56:26 +00:00
rebuildmessages.php
rebuildrecentchanges.php re Bug 31007 - rebuildrecentchanges.php fails for Postgresql with strings for integers 2012-01-03 23:42:15 +00:00
rebuildtextindex.php Pass in some more , __METHOD__ 2011-11-10 20:44:37 +00:00
refreshImageCount.php
refreshImageMetadata.php Fix doc for maintenance/ 2012-02-08 16:55:54 +00:00
refreshLinks.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
removeUnusedAccounts.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
renameDbPrefix.php
renderDump.php
resetUserTokens.php Followup r81928, make proper use of $this->output instead of echo. 2011-03-28 03:38:43 +00:00
rollbackEdits.php * Use WikiPage instead of Article to call commitRollback() 2012-01-14 14:11:08 +00:00
runBatchedQuery.php Remove some unused getting of non existent arguments 2011-10-18 17:32:20 +00:00
runJobs.php Add braces 2011-12-31 00:21:27 +00:00
showJobs.php using real identity for hashar 2011-10-24 09:08:13 +00:00
showStats.php Remove last two vestiges of ss_admins. It still exists in some schema files, but those are harmless 2012-01-26 22:04:55 +00:00
sql.php Fixed reading from file from r108774 2012-01-17 13:29:42 +00:00
sqlite.inc
sqlite.php Remove some unused getting of non existent arguments 2011-10-18 17:32:20 +00:00
stats.php Cleanup to statistics: 2012-01-23 16:27:13 +00:00
tables.sql Fix whitespace; change tabs to spaces. 2012-03-24 17:14:09 -04:00
undelete.php (bug 26854) Invalid user names go unchecked. Applied most of the patch submitted by Søren Løvborg, checking for null return values from User::newFromName() 2011-11-20 10:55:58 +00:00
update.php Same for the getPostDatabaseUpdateMaintenance 2011-11-11 17:06:03 +00:00
updateArticleCount.php * Made SiteStatsInit::articles() give a correct result when $wgUseCommaCount is false (btw, do we really need to keep that variable?) 2011-04-20 11:58:00 +00:00
updateCollation.php More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
updateDoubleWidthSearch.php
updateRestrictions.php Swap else if for elseif 2011-06-17 16:05:35 +00:00
updateSearchIndex.php Bunch of error suppression operator fixes (bug 2011-07-06 21:57:44 +00:00
updateSpecialPages.php Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback() 2012-02-28 18:41:36 +00:00
upgrade1_5.php Fixing up undefined types in maintenance documentation 2012-02-09 21:08:06 +00:00
userDupes.inc Some HipHop fixes: 2011-05-27 06:25:21 +00:00
userOptions.inc Fixing up undefined types in maintenance documentation 2012-02-09 21:08:06 +00:00
userOptions.php using real identity for hashar 2011-10-24 09:08:13 +00:00
waitForSlave.php

== 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 set $wgDBadminuser and $wgDBadminpassword in your
LocalSettings.php

=== 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 the cache

	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