wiki.techinc.nl/maintenance
Niklas Laxström e2fde0fe45 Add --wait option for runJobs.php
It is now very easy to implement a simple low delay job runner:

while true; do php runJobs.php --wait; sleep 1; done;

Change-Id: I50cf00aed4b15d90384a2cc12bddd64d96d5a1ad
2016-02-21 09:24:39 +00:00
..
archives Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
benchmarks Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
dev Merge "Revert "Add executable rights for executable (bash) files"" 2015-08-07 07:38:00 +00:00
dictionary Remove putrid remains of $wgAllowAsyncCopyUploads 2016-01-22 00:18:25 +00:00
hiphop
jsduck jsduck: Remove broken url from custom_tags.rb 2016-02-09 19:18:18 +00:00
language Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
locking
mssql resourceloader: Remove obsolete msg_resource database table 2015-12-14 01:24:27 +00:00
oracle Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
postgres Revert "Remove SessionManager, temporarily" 2016-02-03 21:44:59 +00:00
resources resources: Load OOjs UI from its four parts 2016-02-03 19:27:12 +00:00
sqlite/archives
storage Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
importSites.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
Makefile
makeTestEdits.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08:00
mcc.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
mctest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
mergeMessageFileList.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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
namespaceDupes.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
populateRevisionSha1.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
preprocessDump.php
preprocessorFuzzTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildmessages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildrecentchanges.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
rebuildSitesCache.php Use addDescription() instead of accessing mDescription directly 2016-01-30 01:28:32 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Use addDescription in resetUserEmail maint script 2016-01-30 14:55:27 +01: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
syncFileBackend.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
tables.sql Revert "Remove SessionManager, temporarily" 2016-02-03 21:44:59 +00:00
tidyUpBug37714.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
undelete.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
update-keys.sql
update.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateArticleCount.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
updateCollation.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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 Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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