wiki.techinc.nl/maintenance
2013-10-21 20:35:36 +00:00
..
archives Merge "Split change_tag sql patch" 2013-10-18 18:57:38 +00:00
benchmarks benchmarks: README file having run recommendations 2013-06-26 11:55:57 +00:00
cssjanus Remove a bunch of trailing spaces and unneeded newlines 2012-10-20 13:32:35 +02:00
dev phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dictionary Remove 'mediawiki.legacy.wikiprintable' module 2013-09-16 17:31:58 +00:00
hiphop phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
jsduck mediawiki.inspect: add CSS report 2013-10-20 15:26:49 -07:00
language Remove proxy check in EditPage.php 2013-10-21 01:12:47 +00:00
locking (Bug 37957) Replace php_sapi_name() with PHP_SAPI 2013-02-04 12:50:45 -08:00
mssql Add archive, externallinks PK 2013-10-17 18:43:40 +01:00
oracle Add archive, externallinks PK 2013-10-17 18:43:40 +01:00
postgres Add archive, externallinks PK 2013-10-17 18:43:40 +01:00
sqlite/archives Add archive, externallinks PK 2013-10-17 18:43:40 +01:00
storage phpcs: More require/include is not a function 2013-05-21 23:26:28 +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 phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
backup.inc Remove wfDl() and cleanup everything it touched 2013-10-09 10:51:35 -07:00
backupPrefetch.inc Added space after switch/Removed spaces after unset 2013-04-26 16:42:31 +02:00
backupTextPass.inc Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
cdb.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
changePassword.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkBadRedirects.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkImages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkLess.php Maintenance script to check LESS files for validity 2013-09-30 21:37:13 +04:00
checkSyntax.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
checkUsernames.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
cleanupAncientTables.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupCaps.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupImages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupPreferences.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupRemovedModules.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupSpam.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
cleanupTable.inc Fix PHP CodeSniffer warnings and errors 2013-10-09 18:45:16 +02:00
cleanupTitles.php Fix PHP CodeSniffer warnings and errors 2013-10-09 18:45:16 +02:00
cleanupUploadStash.php Avoid extra HEADs for stash clearing 2013-10-03 09:12:25 -07:00
cleanupWatchlist.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
clearCacheStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
clearInterwikiCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
commandLine.inc phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
compareParsers.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
convertLinks.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
convertUserOptions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
copyFileBackend.php Added a "syncviadelete" param to copyFileBackend script 2013-10-16 23:27:08 +00:00
copyJobQueue.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
createAndPromote.php Add bot to createAndPromote.php groups 2013-05-30 18:03:04 -05:00
deleteArchivedFiles.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
deleteArchivedFiles.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteArchivedRevisions.inc phpcs: Normalize methods declarations to "[final abstract] [visibility]". 2013-02-19 16:56:35 +00:00
deleteArchivedRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteBatch.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteDefaultMessages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteEqualMessages.php deleteEqualMessages: Exclude messages that are empty by default 2013-10-09 21:08:14 +02:00
deleteImageMemcached.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteOldRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteOrphanedRevisions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteRevision.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
deleteSelfExternals.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
doMaintenance.php Remove remaining calls to MWInit methods 2013-09-15 19:04:08 +00:00
Doxyfile doc: speed up dot generation 2013-06-20 19:23:46 +00:00
dumpBackup.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dumpIterator.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dumpLinks.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dumpSisterSites.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dumpTextPass.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
dumpUploads.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
edit.php edit.php maintenance script not setting up context, just globals 2013-06-06 21:21:19 +01:00
eraseArchivedFile.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
eval.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fetchText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fileOpPerfTest.php Added a --profiler option to all maintenance scripts. 2013-05-23 14:20:51 -07:00
findHooks.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixDoubleRedirects.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixExtLinksProtocolRelative.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixSlaveDesync.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixTimestamps.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fixUserRegistration.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
formatInstallDoc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
fuzz-tester.php Remove proxy check in EditPage.php 2013-10-21 01:12:47 +00:00
generateSitemap.php Deprecate wfDebugDieBacktrace 2013-09-27 19:57:41 -04:00
getConfiguration.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
getLagTimes.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
getSlaveServer.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
getText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
importDump.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
importImages.inc Fixed some spacing in maintenance folder 2013-04-18 20:48:44 +02:00
importImages.php importImages.php: Correctly generate automatic summary 2013-10-18 17:44:48 +00:00
importSiteScripts.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
importTextFile.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
initEditCount.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
initSiteStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
install.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +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 phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
lag.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
Maintenance.php Maintenance: detect missing parent::__construct() 2013-10-03 02:53:30 -04:00
Makefile Initial JSDuck implementation 2013-02-23 03:02:45 +01:00
mcc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
mctest.php Fixed check of BagOStuff set() return value in mctest 2013-09-18 18:23:59 +00:00
mergeMessageFileList.php Added $wgExtensionEntryPointListFiles for use with mergeMessageFileList.php 2013-10-08 17:21:58 +01:00
migrateUserGroup.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
minify.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
moveBatch.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
mwdoc-filter.php Fixed spacing around parenthesis in languages/tests/maintenance 2013-04-28 15:57:34 +00:00
mwdocgen.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
mwjsduck-gen Enable @example for jsduck index 2013-07-04 02:17:39 +00:00
namespaceDupes.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
nextJobDB.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
nukeNS.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
nukePage.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
orphans.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
parse.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
patchSql.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateCategory.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateFilearchiveSha1.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateImageSha1.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateLogSearch.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateLogUsertext.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateParentId.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateRevisionLength.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
populateRevisionSha1.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
preprocessDump.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
preprocessorFuzzTest.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
protect.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
pruneFileCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
purgeChangedFiles.php Add script to purge changed files from cache 2013-10-08 14:17:25 -06:00
purgeChangedPages.php Add configurable delay between purgeChangedPages batches 2013-10-15 15:38:52 +00:00
purgeList.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
purgeOldText.inc echo is not a function 2013-05-09 19:52:45 +00:00
purgeOldText.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
purgeParserCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
README normalize filenames of maintenance scripts 2013-03-06 03:57:54 +00:00
reassignEdits.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildall.php (bug 50025) rebuildall.php script needs database admin rights 2013-06-25 07:24:13 +00:00
rebuildFileCache.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildImages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildLocalisationCache.php Return values from finalSetup() aren't evaluated 2013-08-15 22:53:40 +00:00
rebuildmessages.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
rebuildrecentchanges.php Revert "Add new recentchanges field rc_source to replace rc_type" 2013-10-17 00:32:40 +00:00
rebuildtextindex.php Pass content to SearchUpdate rather than raw text 2013-06-19 16:40:46 -04:00
refreshFileHeaders.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
refreshImageMetadata.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
refreshLinks.php bug 23839: "Refreshing links table" -> "Refreshing links tables" 2013-09-25 09:14:27 -07:00
removeUnusedAccounts.php Change message to say deleting "unused" accounts rather than "inactive". 2013-07-19 22:27:20 +00:00
renameDbPrefix.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
renderDump.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
resetUserTokens.php Efficiently reset null user tokens 2013-08-28 15:16:58 -07:00
rollbackEdits.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
runBatchedQuery.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
runJobs.php Fix spacing and break some lines 2013-08-24 17:06:25 +02:00
showCacheStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
showJobs.php Use max() for job count for sanity 2013-10-10 14:56:11 -07:00
showSiteStats.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
sql.php Allow server selection when running sql.php 2013-05-22 23:08:35 -07:00
sqlite.inc Remove wfDl() and cleanup everything it touched 2013-10-09 10:51:35 -07:00
sqlite.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
syncFileBackend.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
tables.sql Add archive, externallinks PK 2013-10-17 18:43:40 +01:00
tidyUpBug37714.php Tidy up log deletion rows which didn't get subpages 2013-09-21 02:42:45 +00:00
undelete.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
update.php update.php clears caches twice 2013-09-21 03:37:02 +00:00
updateArticleCount.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
updateCollation.php updateCollation.php: sanity check the collation before proceeding 2013-07-04 05:21:04 +00:00
updateDoubleWidthSearch.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
updateRestrictions.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
updateSearchIndex.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
updateSpecialPages.php If --only and we've had a hit, no need to continue iteration over $wgQueryPages 2013-08-22 17:20:00 +00:00
userDupes.inc Remove remaining calls to MWInit methods 2013-09-15 19:04:08 +00:00
userOptions.inc phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
userOptions.php phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings 2013-05-09 05:56:26 +02:00
waitForSlave.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02: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