wiki.techinc.nl/maintenance
2016-05-31 19:22:44 +00:00
..
archives Add new index to make updateCollation.php painless 2016-03-22 16:32:52 -06:00
benchmarks Clean up after "Kill mbstring fallbacks" 2016-04-07 09:02:37 -04:00
dev Merge "Revert "Add executable rights for executable (bash) files"" 2015-08-07 07:38:00 +00:00
dictionary ApiMain: Correct typo in variable name 2016-03-28 16:45:02 +00:00
hiphop
jsduck Upstream isElementInViewport from MobileFrontend 2016-03-02 14:22:14 -08:00
language Chinese Conversion Table Update 2016-2 2016-04-14 13:34:46 +08:00
locking
mssql Fix deleting pages/files when using Microsoft SQL Server 2016-05-06 06:28:45 +00:00
oracle Add id field to watchlist db table 2016-02-18 21:01:01 +00:00
postgres Add id field to watchlist db table 2016-02-18 21:01:01 +00:00
resources Follow-up f9b4bbff: Fix typo'ed variable name 2016-05-03 19:08:15 -04:00
sqlite/archives Add id field to watchlist db table 2016-02-18 21:01:01 +00:00
storage RecompressTracked: Remove useless member variable 2016-05-18 13:40:39 -07:00
term
.htaccess
7zip.inc
attachLatest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
backup.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
backupPrefetch.inc Fix issues identified by SpaceBeforeSingleLineComment sniff 2015-09-26 23:06:52 +00:00
cdb.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
changePassword.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
checkBadRedirects.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkComposerLockUpToDate.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
checkImages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkLess.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkSyntax.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
checkUsernames.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupAncientTables.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupBlocks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupCaps.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
cleanupImages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupPreferences.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupRemovedModules.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupSpam.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupTable.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupTitles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
cleanupUploadStash.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
cleanupWatchlist.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
clearInterwikiCache.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
commandLine.inc Register importImages options without arguments as actual maintenance script options so they are usable 2016-03-12 00:23:43 +00:00
compareParserCache.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
compareParsers.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
convertExtensionToRegistration.php registration: Add --config-prefix to convertExtensionToRegistration.php 2016-05-26 17:58:19 +00:00
convertLinks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
convertUserOptions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
copyFileBackend.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
copyJobQueue.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
createAndPromote.php Don't allow createAndPromote.php to add users to invalid groups 2016-04-03 12:28:48 +01:00
createCommonPasswordCdb.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteArchivedFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteArchivedRevisions.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
deleteBatch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteDefaultMessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteEqualMessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteOldRevisions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteOrphanedRevisions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteRevision.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
deleteSelfExternals.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
doMaintenance.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
Doxyfile Doxygen: Disable verbose output 2015-11-23 20:33:01 +00:00
dumpBackup.php Replace create_function() with a closure 2016-03-10 18:20:16 -05:00
dumpIterator.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
dumpLinks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
dumpTextPass.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
dumpUploads.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
edit.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
eraseArchivedFile.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
eval.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
exportSites.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
fetchText.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fileOpPerfTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
findDeprecated.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
findHooks.php findHooks.php: Use recursive directory iterator 2016-03-01 22:57:19 +00:00
findMissingFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
findOrphanedFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixDefaultJsonContentPages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixDoubleRedirects.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixExtLinksProtocolRelative.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixTimestamps.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
fixUserRegistration.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
formatInstallDoc.php
generateJsonI18n.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
generateLocalAutoload.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
generateSitemap.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
getConfiguration.php Replace uses of join() by implode() 2016-03-08 18:24:16 +00:00
getLagTimes.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
getSlaveServer.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
getText.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
importDump.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importImages.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importImages.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
importSites.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
importSiteScripts.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importTextFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
initEditCount.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
initSiteStats.php initSiteStats.php: Make it obvious you need to use --update 2016-03-08 11:11:06 -08:00
install.php phpcs: Use __DIR__ constant instead of calling 2015-11-15 21:14:42 +01:00
interwiki.list Remove the SourceForge interwiki 2015-09-04 14:51:55 -07:00
interwiki.sql Remove the SourceForge interwiki 2015-09-04 14:51:55 -07:00
jsparse.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
lag.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
Maintenance.php Respect undeclared command line options 2016-03-10 16:22:21 +11:00
Makefile
makeTestEdits.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
mcc.php Try to fix some other broken-looking legacy maintenance script options 2016-03-12 00:47:36 +00:00
mctest.php Remove used of deprecated MemCachedClientforWiki 2016-04-03 11:52:50 +03:00
mergeMessageFileList.php Support multiple extension-dir paths to be passed to mergeMessageFileList 2016-03-16 15:35:07 -05:00
migrateFileRepoLayout.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
migrateUserGroup.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
minify.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
moveBatch.php Use english messages for background use of Status::getWikiText 2016-04-12 20:01:44 +02:00
mwdoc-filter.php Doxygen: Rewrite mwdoc-filter to fix bug with slashes in comments 2015-11-23 23:02:13 +00:00
mwdocgen.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
mwjsduck-gen Rename JSDuck config to standard 'jsduck' 2015-03-09 18:10:00 +00:00
namespaceDupes.php Namespace LinkTarget under MediaWiki\Linker 2016-04-21 17:19:10 -07:00
nukeNS.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
nukePage.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
orphans.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
pageExists.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
parse.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
patchSql.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateBacklinkNamespace.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateCategory.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateContentModel.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateFilearchiveSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateImageSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateLogSearch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateLogUsertext.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateParentId.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateRecentChangesSource.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateRevisionLength.php populateRevisionLength: Read from slaves when possible 2016-05-22 22:48:11 +02:00
populateRevisionSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
preprocessDump.php
preprocessorFuzzTest.php Try to fix some other broken-looking legacy maintenance script options 2016-03-12 00:47:36 +00:00
protect.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
pruneFileCache.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
purgeChangedFiles.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
purgeChangedPages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
purgeList.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
purgeOldText.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
purgeParserCache.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
README Remove obsolete showCacheStats.php and showCacheStats.php 2015-12-07 19:49:29 +00:00
reassignEdits.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildall.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
rebuildFileCache.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildImages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildLocalisationCache.php Fix RebuildLocalisationCache bug from MediaWikiServices 2016-04-11 19:16:31 +00:00
rebuildmessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildrecentchanges.php RebuildRecentchanges improvements 2016-04-19 13:52:40 -07:00
rebuildSitesCache.php Introduce top level service locator. 2016-04-02 18:07:28 +03:00
rebuildtextindex.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
refreshFileHeaders.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
refreshImageMetadata.php refreshImageMetadata: Allow filtering by 'img_media_type' too 2016-03-29 18:11:42 +02:00
refreshLinks.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
removeInvalidEmails.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
removeUnusedAccounts.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
renameDbPrefix.php Update wfGetDB calls in Maintenance scripts to use getDB() 2016-01-02 16:58:23 +00:00
renderDump.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
resetUserEmail.php resetUserEmail: Allow resetting email without scrambling password 2016-02-18 16:04:49 +00:00
resetUserTokens.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rollbackEdits.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
runBatchedQuery.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
runJobs.php Add --wait option for runJobs.php 2016-02-21 09:24:39 +00:00
runScript.php
showJobs.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
showSiteStats.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
sql.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
sqlite.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
sqlite.php Many more function case mismatches 2016-03-19 00:20:58 +00:00
syncFileBackend.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
tables.sql Add new index to make updateCollation.php painless 2016-03-22 16:32:52 -06:00
tidyUpBug37714.php Improve code suffering from PHP 5.3's lack of support for foo()[] 2016-02-28 22:49:20 +01:00
undelete.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
update-keys.sql
update.php Fix mbstring check in update.php 2016-04-08 00:44:33 -04:00
updateArticleCount.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateCollation.php Merge "Make updateCollation wait for slaves every 500 (instead of 2000)" 2016-05-12 11:47:08 +00:00
updateDoubleWidthSearch.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateRestrictions.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateSearchIndex.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
updateSpecialPages.php Update wfGetDB calls in Maintenance scripts to use getDB() 2016-01-02 16:58:23 +00:00
userDupes.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
userOptions.inc Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
userOptions.php
validateRegistrationFile.php Fix whitespace issues around parentheses 2015-06-16 22:14:02 +03:00
wrapOldPasswords.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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

	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

	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