wiki.techinc.nl/maintenance
2013-04-18 00:52:10 +00:00
..
archives Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
benchmarks Added spaces before and removed spaces after 'array' 2013-04-14 21:57:46 +02:00
cssjanus Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
dev (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
dictionary A list of many words mediawiki uses as strings, comments, names. 2013-03-22 01:12:30 -04:00
hiphop Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
jsduck jsduck-gen: Add --version parameter 2013-04-09 09:03:55 +00:00
language Merge "else if -> elseif" 2013-04-17 23:54:30 +00:00
locking (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
mssql Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
oracle Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
postgres Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
sqlite/archives (bug 36400) API: Fix sorting for iwlinks, langlinks 2013-04-03 13:22:20 -04:00
storage Added spaces before and removed spaces after 'array' 2013-04-14 21:57:46 +02:00
term style: normalize end of files 2013-02-03 15:04:39 +01:00
.htaccess
7zip.inc misc style issues 2013-01-30 16:12:59 +01:00
attachLatest.php merged master 2012-08-29 15:20:15 +02:00
backup.inc else if -> elseif 2013-04-17 16:52:47 +02:00
backupPrefetch.inc style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
backupTextPass.inc Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
cdb.php merged master 2012-08-29 15:20:15 +02:00
changePassword.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
checkBadRedirects.php merged master 2012-08-29 15:20:15 +02:00
checkImages.php merged master 2012-08-29 15:20:15 +02:00
checkSyntax.php style: normalize end of files 2013-02-03 15:04:39 +01:00
checkUsernames.php merged master 2012-08-29 15:20:15 +02:00
cleanupAncientTables.php merged master 2012-08-29 15:20:15 +02:00
cleanupCaps.php merged master 2012-08-29 15:20:15 +02:00
cleanupImages.php merged master 2012-08-29 15:20:15 +02:00
cleanupPreferences.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
cleanupRemovedModules.php merged master 2012-08-29 15:20:15 +02:00
cleanupSpam.php Better error message for invalid user name in cleanupSpam.php 2013-02-14 08:16:10 +01:00
cleanupTable.inc merge latest master. 2012-09-05 17:50:13 +02:00
cleanupTitles.php Correct case of Title::getPrefixedDBkey() calls 2013-03-09 21:14:22 +01:00
cleanupUploadStash.php Made upload stash cleanup script scan the temp dir for old files. 2013-01-17 12:04:38 -08:00
cleanupWatchlist.php merged master 2012-08-29 15:20:15 +02:00
clearCacheStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
clearInterwikiCache.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
commandLine.inc merged master 2012-08-29 15:20:15 +02:00
compareParsers.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
convertLinks.php merged master 2012-08-29 15:20:15 +02:00
convertUserOptions.php Add some __METHOD__ to begin/commit/rollback calls 2012-12-01 15:04:10 +01:00
copyFileBackend.php Mention the batch-download time in copyFileBackend.php. 2013-02-26 08:46:35 +00:00
copyJobQueue.php Added a script to copy jobs from one queue to another. 2013-04-09 23:12:06 +00:00
createAndPromote.php else if -> elseif 2013-04-17 16:52:47 +02:00
deleteArchivedFiles.inc phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
deleteArchivedFiles.php merged master 2012-08-29 15:20:15 +02:00
deleteArchivedRevisions.inc phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
deleteArchivedRevisions.php merged master 2012-08-29 15:20:15 +02:00
deleteBatch.php merged master 2012-08-29 15:20:15 +02:00
deleteDefaultMessages.php merged master 2012-08-29 15:20:15 +02:00
deleteEqualMessages.php (bug 43915) Implement deleteEqualMessages.php 2013-01-31 19:45:31 -08:00
deleteImageMemcached.php merged master 2012-08-29 15:20:15 +02:00
deleteOldRevisions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
deleteOrphanedRevisions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
deleteRevision.php merged master 2012-08-29 15:20:15 +02:00
deleteSelfExternals.php merged master 2012-08-29 15:20:15 +02:00
doMaintenance.php Set up the profiler in CLI mode. 2013-04-17 10:05:00 -07:00
Doxyfile Merge "doxygen now recognizes README and .txt files" 2012-10-22 12:04:49 +00:00
dumpBackup.php merged master 2012-08-29 15:20:15 +02:00
dumpIterator.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
dumpLinks.php Fix case of some Title methods 2013-03-26 10:54:15 +01:00
dumpSisterSites.php Fix case of some Title methods 2013-03-27 14:36:05 +01:00
dumpTextPass.php style: normalize end of files 2013-02-03 15:04:39 +01:00
dumpUploads.php merged master 2012-08-29 15:20:15 +02:00
edit.php style: normalize end of files 2013-02-03 15:04:39 +01:00
eval.php style: normalize end of files 2013-02-03 15:04:39 +01:00
fetchText.php merged master 2012-08-29 15:20:15 +02:00
fileOpPerfTest.php Remove dead code. 2013-02-26 08:10:51 +00:00
findHooks.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
fixDoubleRedirects.php Use JobQueueGroup::singleton() 2012-12-07 20:30:45 +01:00
fixExtLinksProtocolRelative.php merged master 2012-08-29 15:20:15 +02:00
fixSlaveDesync.php Use ResultWrapper::numRows() instead of DatabaseBase::numRows() 2013-01-06 11:52:40 +01:00
fixTimestamps.php merged master 2012-08-29 15:20:15 +02:00
fixUserRegistration.php merged master 2012-08-29 15:20:15 +02:00
formatInstallDoc.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
fuzz-tester.php Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
generateSitemap.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
getConfiguration.php [JobQueue] Use target wiki configuration for some key functions. 2013-02-21 05:34:42 +00:00
getLagTimes.php merged master 2012-08-29 15:20:15 +02:00
getSlaveServer.php merged master 2012-08-29 15:20:15 +02:00
getText.php get rid of Revision::getText 2012-09-14 18:23:21 +02:00
importDump.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
importImages.inc Add an option to importImages to search subdirectories recursively 2012-12-20 09:56:10 +00:00
importImages.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
importSiteScripts.php Cleanup of Wikidata branch. 2012-10-08 17:34:47 +02:00
importTextFile.php merged master 2012-08-29 15:20:15 +02:00
initEditCount.php merged master 2012-08-29 15:20:15 +02:00
initSiteStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
install.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02: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 Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
lag.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
Maintenance.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
Makefile Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
mcc.php Added a --cache option to mctest.php and mcc.php. 2013-03-14 23:09:24 -07:00
mctest.php Added a --cache option to mctest.php and mcc.php. 2013-03-14 23:09:24 -07:00
mergeMessageFileList.php mergeMessageFileList.php: abort on read error 2013-04-05 12:03:31 +11:00
migrateUserGroup.php (bug 40340) Fix cache issues with changing user groups 2012-12-28 14:35:49 +00:00
minify.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
moveBatch.php merged master 2012-08-29 15:20:15 +02:00
mwdoc-filter.php (Bug 45355) Read of arbitrary files through mwdoc-filter.php 2013-02-25 16:07:43 +01:00
mwdocgen.php Merge "mwdocgen.php: Exit with exit code of passthru(doxygen)" 2013-03-15 07:57:14 +00:00
mwjsduck-gen jsduck-gen: Add --version parameter 2013-04-09 09:03:55 +00:00
namespaceDupes.php (bug 42269) namespaceDupes.php has to use the interwiki cache 2012-12-20 16:42:04 +00:00
nextJobDB.php [JobQueue] Throttle refreshLinks2 jobs based on finishing the refreshLinks jobs. 2013-03-05 23:28:55 +00:00
nukeNS.php merged master 2012-08-29 15:20:15 +02:00
nukePage.php merged master 2012-08-29 15:20:15 +02:00
orphans.php Use ResultWrapper::numRows() instead of DatabaseBase::numRows() 2013-01-06 11:52:40 +01:00
parse.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
patchSql.php merged master 2012-08-29 15:20:15 +02:00
populateCategory.php merged master 2012-08-29 15:20:15 +02:00
populateFilearchiveSha1.php (bug 38110) provide a way to separate out schema changes 2012-11-21 22:53:24 -05:00
populateImageSha1.php merged master 2012-08-29 15:20:15 +02:00
populateLogSearch.php merged master 2012-08-29 15:20:15 +02:00
populateLogUsertext.php style: normalize end of files 2013-02-03 15:04:39 +01:00
populateParentId.php merged master 2012-08-29 15:20:15 +02:00
populateRevisionLength.php else if -> elseif 2013-04-17 16:52:47 +02:00
populateRevisionSha1.php else if -> elseif 2013-04-17 16:52:47 +02:00
preprocessDump.php style: normalize end of files 2013-02-03 15:04:39 +01:00
preprocessorFuzzTest.php Clean up: Declare variables with public instead of var 2012-09-14 21:00:00 +02:00
protect.php Remove some unused local variables. 2012-10-08 02:05:49 +02:00
proxyCheck.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
pruneFileCache.php merged master 2012-08-29 15:20:15 +02:00
purgeDeletedFiles.php merged master 2012-08-29 15:20:15 +02:00
purgeList.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
purgeOldText.inc More __METHOD__ in our madness 2012-02-24 18:45:24 +00:00
purgeOldText.php merged master 2012-08-29 15:20:15 +02:00
purgeParserCache.php Use output/error maintenance functions 2013-03-08 02:40:07 +00:00
README normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
reassignEdits.php style: normalize end of files 2013-02-03 15:04:39 +01:00
rebuildall.php merged master 2012-08-29 15:20:15 +02:00
rebuildFileCache.php merged master 2012-08-29 15:20:15 +02:00
rebuildImages.php merge latest master. 2012-09-05 17:50:13 +02:00
rebuildLocalisationCache.php Allow non-English wikis to rebuild l10n cache 2013-01-10 15:54:15 -05:00
rebuildmessages.php merged master 2012-08-29 15:20:15 +02:00
rebuildrecentchanges.php Added/Removed spaces around string concatenation 2013-04-13 13:36:24 +02:00
rebuildtextindex.php Remove unused globals 2012-12-27 14:04:53 +01:00
refreshFileHeaders.php Added a script to populate file HTTP headers for existing files. 2012-11-28 09:00:01 +00:00
refreshImageMetadata.php style: fix up commas in function arguments 2013-02-06 19:30:39 +01:00
refreshLinks.php Make redirect update in refreshLinks.php bypass the redirect table 2013-01-17 10:51:35 +01:00
removeUnusedAccounts.php (bug 34581) RemoveUnusedAccounts: Ignore newuser log. 2012-12-24 05:06:05 +01:00
renameDbPrefix.php merged master 2012-08-29 15:20:15 +02:00
renderDump.php Removal of unused globals. 2012-11-26 22:15:11 +01:00
resetUserTokens.php merged master 2012-08-29 15:20:15 +02:00
rollbackEdits.php merged master 2012-08-29 15:20:15 +02:00
runBatchedQuery.php merged master 2012-08-29 15:20:15 +02:00
runJobs.php Do not bother with ForkController for procs=1. 2013-04-17 14:23:10 -07:00
showCacheStats.php normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
showJobs.php [JobQueue] Added JobQueue::getAbandonedCount() and use it in showJobs.php. 2013-04-01 13:53:20 -07:00
showSiteStats.php showSiteStats now shows ss_active_users statistic 2013-03-27 12:08:47 +00:00
sql.php Add a wfWaitForSlaves() call at the end of sql.php 2013-02-25 23:57:31 +00:00
sqlite.inc Update docs for return and exception info 2012-10-09 09:41:58 +00:00
sqlite.php merge latest master. 2012-09-05 17:50:13 +02:00
syncFileBackend.php Made backend sync script update the pos file periorically. 2013-03-09 22:44:17 -08:00
tables.sql Remove ExternalUser authentication code 2013-04-04 10:09:34 -04:00
undelete.php merged master 2012-08-29 15:20:15 +02:00
update.php else if -> elseif 2013-04-17 16:52:47 +02:00
updateArticleCount.php merge latest master. 2012-09-05 17:50:13 +02:00
updateCollation.php (bug 46615) updateCollation.php: sanity check the collation before proceeding 2013-03-27 21:16:57 +01:00
updateDoubleWidthSearch.php merge latest master. 2012-09-05 17:50:13 +02:00
updateRestrictions.php merge latest master. 2012-09-05 17:50:13 +02:00
updateSearchIndex.php (bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title 2012-09-29 17:19:40 +02:00
updateSpecialPages.php Output special page name before attempting to run function 2012-11-16 23:20:58 +00:00
userDupes.inc misc style issues 2013-01-30 16:12:59 +01:00
userOptions.inc Remove spaces between parentheses in function calls 2013-03-17 16:13:22 +01:00
userOptions.php style: normalize end of files 2013-02-03 15:04:39 +01:00
waitForSlave.php (bug 44862) Fixed waitForSlave.php constructor. 2013-02-14 09:35:58 +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 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

	showCacheStats.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