wiki.techinc.nl/maintenance
jeroendedauw 38c7f444e1 Use __DIR__ instead of dirname( __FILE__ )
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)

Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
..
archives Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
benchmarks Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cssjanus
dev Followup ac8b7d54f8 fix broken php detection 2012-08-05 22:56:16 -07:00
hiphop Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
ibm_db2 (bug 5445) remove autoblocks when user is unblocked 2012-05-03 12:07:30 +02:00
language Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
locking [LockManager] Made LSLockManager session 32 chars (128 bits). 2012-07-18 13:43:51 -07:00
mssql (bug 5445) remove autoblocks when user is unblocked 2012-05-03 12:07:30 +02:00
oracle Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
postgres (bug 5445) remove autoblocks when user is unblocked 2012-05-03 12:07:30 +02:00
sqlite/archives Can someone standardi[sz]e SQL already!? 2012-03-06 00:26:48 +00:00
storage Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
term Added missing GPLv2 headers in some places. 2012-06-14 14:26:37 +02:00
.htaccess
7zip.inc
attachLatest.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
backup.inc
backupPrefetch.inc
backupTextPass.inc Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cdb.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
changePassword.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
checkAutoLoader.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
checkBadRedirects.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
checkImages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
checkSyntax.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
checkUsernames.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupAncientTables.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupCaps.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupImages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupPreferences.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupRemovedModules.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupSpam.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupTable.inc Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupTitles.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupUploadStash.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
cleanupWatchlist.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
clear_interwiki_cache.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
clear_stats.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
commandLine.inc Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
compareParsers.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
convertLinks.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
convertUserOptions.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
copyFileBackend.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
createAndPromote.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteArchivedFiles.inc use FileRepo api to delete and check for files 2012-07-19 20:31:24 +00:00
deleteArchivedFiles.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteArchivedRevisions.inc Improve documentation of maintenance scripts. 2012-07-08 22:50:22 +02:00
deleteArchivedRevisions.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteBatch.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteDefaultMessages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteImageMemcached.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteOldRevisions.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteOrphanedRevisions.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteRevision.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
deleteSelfExternals.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
doMaintenance.php Disable the db LCStore if the maintenance script doesn't need a db. 2012-06-26 18:58:37 +02:00
Doxyfile doxygen filter need to use a full path 2012-08-02 16:20:52 +02:00
dumpBackup.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
dumpIterator.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
dumpLinks.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
dumpSisterSites.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
dumpTextPass.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
dumpUploads.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
edit.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
eval.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fetchText.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fileOpPerfTest.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
findHooks.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fixDoubleRedirects.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fixExtLinksProtocolRelative.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fixSlaveDesync.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fixTimestamps.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fixUserRegistration.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
formatInstallDoc.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
fuzz-tester.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
generateSitemap.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
getLagTimes.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
getSlaveServer.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
getText.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
importDump.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
importImages.inc Improve documentation of maintenance scripts. 2012-07-24 18:10:43 +02:00
importImages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
importSiteScripts.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
importTextFile.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
initEditCount.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
initStats.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
install.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
interwiki.list
interwiki.sql
jsparse.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
lag.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
Maintenance.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
Makefile
mcc.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
mctest.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
mergeMessageFileList.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
migrateUserGroup.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
minify.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
moveBatch.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
mwdoc-filter.php Improve documentation of maintenance scripts. 2012-08-05 12:00:37 +02:00
mwdocgen.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
namespaceDupes.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
nextJobDB.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
nukeNS.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
nukePage.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
orphans.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
parse.php Improve documentation of maintenance scripts. 2012-08-02 21:34:23 +02:00
patchSql.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateCategory.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateImageSha1.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateLogSearch.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateLogUsertext.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateParentId.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateRevisionLength.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
populateRevisionSha1.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
preprocessDump.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
preprocessorFuzzTest.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
protect.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
proxy_check.php Added missing GPLv2 headers in some places. 2012-06-14 14:26:37 +02:00
pruneFileCache.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
purgeDeletedFiles.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
purgeList.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
purgeOldText.inc
purgeOldText.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
purgeParserCache.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
purgeStaleMemcachedText.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
README
reassignEdits.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildall.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildFileCache.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildImages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildLocalisationCache.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildmessages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildrecentchanges.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rebuildtextindex.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
refreshImageCount.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
refreshImageMetadata.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
refreshLinks.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
removeUnusedAccounts.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
renameDbPrefix.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
renderDump.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
resetUserTokens.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
rollbackEdits.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
runBatchedQuery.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
runJobs.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
showJobs.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
showStats.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
sql.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
sqlite.inc
sqlite.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
stats.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
syncFileBackend.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
tables.sql (bug 5445) remove autoblocks when user is unblocked 2012-05-03 12:07:30 +02:00
undelete.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
update.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateArticleCount.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateCollation.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateDoubleWidthSearch.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateRestrictions.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateSearchIndex.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
updateSpecialPages.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
upgrade1_5.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
userDupes.inc
userOptions.inc Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +02:00
userOptions.php
waitForSlave.php Use __DIR__ instead of dirname( __FILE__ ) 2012-08-27 21:45:00 +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

	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