wiki.techinc.nl/maintenance
2006-07-10 09:02:32 +00:00
..
archives Turn off ipb_create_account for user blocks. 2006-07-10 09:02:32 +00:00
dtrace
mysql5 * (bug 6448) Allow filtering of Special:Newpages according to username 2006-07-10 08:38:48 +00:00
oracle Remove unused "validation" table definitions from the schema files 2006-06-21 22:40:40 +00:00
postgres Might as well give pag_random a decent default. 2006-07-05 04:15:57 +00:00
storage Added experimental support for restoration 2006-04-24 08:49:29 +00:00
.htaccess
addwiki.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
alltrans.php
apache-ampersand.diff
attachLatest.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
attribute.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
backup.inc * dumpBackup can optionally compress via dbzip2 2006-06-27 04:42:53 +00:00
backupPrefetch.inc * Fix backup dump text prefetch for XMLReader constant changes in PHP 5.1 2006-01-22 04:05:30 +00:00
benchmarkPurge.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
build-intl-wiki.sql put TYPE back in, now as it's back in 5.1 ;-) 2006-04-08 21:11:13 +00:00
changePassword.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
changeuser.sql
checktrans.php
checkUsernames.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
cleanupCaps.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupDupes.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupDupes.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupSpam.php Live fix: support running on all wikis on a farm site 2006-04-02 04:15:37 +00:00
cleanupTitles.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
cleanupWatchlist.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
clear_interwiki_cache.php Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
clear_stats.php Job::pop() may occasionally return false when there are actually more jobs remaining, but there is too much contention to efficiently delete one. runJobs can keep trying, as opposed to apache threads which should stop in this case. 2006-02-28 05:24:52 +00:00
commandLine.inc microtime(true) instead of slow php4 hacks 2006-05-28 21:25:03 +00:00
convertLinks.inc Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
convertLinks.php
counter.php * A function for pretty counts 2005-11-01 19:17:31 +00:00
createAndPromote.php Maintenance script to create an account and promote it to administrator 2006-06-17 23:07:16 +00:00
database.sql
delete-idle-wiki-users.pl
deleteBatch.php A batch-deletion script based on the batch-move script 2006-06-15 04:58:03 +00:00
deleteImageMemcached.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
deleteOldRevisions.inc * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
deleteOldRevisions.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
deleteOrphanedRevisions.inc.php Maintenance script to remove orphaned revisions from the database 2006-05-17 07:37:20 +00:00
deleteOrphanedRevisions.php Maintenance script to remove orphaned revisions from the database 2006-05-17 07:37:20 +00:00
deleteRevision.php Delete (i.e. move to archive) a list of revisions 2006-05-12 08:14:57 +00:00
diffLanguage.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
Doxyfile Switching from phpdoc to doxygen (use less than 32MB of memory). 2006-04-19 15:46:24 +00:00
dumpBackup.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
dumpHTML.inc * (bug 6479) Allow specification of the skin to use during HTML dumps 2006-06-28 20:35:16 +00:00
dumpHTML.php * (bug 6479) Allow specification of the skin to use during HTML dumps 2006-06-28 20:35:16 +00:00
dumpInterwiki.inc When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons). 2006-01-21 13:25:41 +00:00
dumpInterwiki.php somewhatdirtyhack: build constant slightly compact database of interwiki prefixes 2006-01-21 13:05:43 +00:00
dumpLinks.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
dumpMessages.php
dumpReplayLog.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpTextPass.php * dumpTextPass can now use 7zip files for prefetch 2006-05-12 11:14:40 +00:00
duplicatetrans.php
entities2literals.pl Fix 4249 : typo 2005-12-11 19:56:44 +00:00
eval.php Remove some stray executable bits 2006-04-04 07:57:48 +00:00
fetchInterwiki.pl
findhooks.php basic script to find undocumented / deprecated hooks. 2006-05-02 20:59:56 +00:00
FiveUpgrade.inc * (bug 6523) Fix SVG issue in rebuildImages.php 2006-07-03 17:24:08 +00:00
fixSlaveDesync.php In fixSlaveDesync.php, don't check slaves that have zero load. 2006-06-03 22:20:31 +00:00
fixTimestamps.php fix line endings 2006-04-18 00:10:54 +00:00
fixUserRegistration.php Script to update user_registration to an approximation, for old rows. 2006-06-05 05:21:12 +00:00
generateSitemap.php * Fixed fatal error introduced by brion in version 1.20, wfDie() has not been 2006-03-11 21:25:03 +00:00
importDump.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importImages.inc.php Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
importImages.php Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
importLogs.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importLogs.php * (bug 1103) Fix up redirect handling for images, categories 2006-01-13 00:29:20 +00:00
importPhase2.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
importTextFile.inc These files somehow got committed with DOS line endings, but are declared as native... Weeeeird 2006-05-16 22:19:23 +00:00
importTextFile.php These files somehow got committed with DOS line endings, but are declared as native... Weeeeird 2006-05-16 22:19:23 +00:00
importUseModWiki.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
InitialiseMessages.inc Removing the additional protection of the system messages in maintenance/InitialiseMessages.inc. The system messages are already protected using the permission "editinterface", which protects the whole MediaWiki namespace, and they require no additional protection. If we want that regular users will be able to edit the messages, for example, we are currently required to grant them the both permissions "editinterface" and "protect". 2006-07-01 10:22:09 +00:00
initStats.php Introduce $wgContentNamespaces which allows for articles to exist in namespaces other than the main namespace, and still be counted as valid content in the site statistics. 2006-06-12 11:59:12 +00:00
interwiki.sql
lang2po.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
langmemusage.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
languages.inc Ignore the .deps files 2006-04-05 13:28:55 +00:00
Makefile
mcc.php Remove some stray executable bits 2006-04-04 07:57:48 +00:00
mctest.php Was never committed to HEAD for some reason 2006-01-28 08:22:24 +00:00
moveBatch.php * Allow page moves over historyless self-redirects. Such are usually created 2006-06-28 20:31:04 +00:00
mwdocgen.php Switching from phpdoc to doxygen (use less than 32MB of memory). 2006-04-19 15:46:24 +00:00
mwdoxygen.cfg
namespace2sql.php Fix #4418: remove $id and $header that causes conflicts 2006-01-03 11:59:39 +00:00
namespaceDupes.php Allow use of arbitrray prefix *and* dest namespace key 2006-06-28 19:15:32 +00:00
nukePage.inc Clean up recent changes entries when a page is nuked 2006-02-26 02:07:50 +00:00
nukePage.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
orphans.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
ourusers.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTests.inc Various performance and initialisation issues: 2006-07-02 15:57:59 +00:00
parserTests.php * parserTests.php accepts a --file parameter to run an alternate test sutie 2006-06-01 04:00:41 +00:00
parserTests.txt Add some more tests from Nick Jenkins 2006-07-07 05:28:49 +00:00
parserTestsParserHook.php * Renamed functions to make more sense 2006-02-27 04:04:44 +00:00
parserTestsParserTime.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
parserTestsStaticParserHook.php * parserTests.php accepts a --file parameter to run an alternate test sutie 2006-06-01 04:00:41 +00:00
purgeOldText.inc Fix oversight - was using $tbl_text instead of $tbl_txt 2006-02-04 17:38:42 +00:00
purgeOldText.php * Maintenance script to delete unused text records 2006-01-25 21:08:29 +00:00
README Maintenance script to import multiple files into the wiki 2006-05-15 10:57:52 +00:00
reassignEdits.inc.php Rewrite reassignEdits script to be more efficient; support optional updates to recent changes table; add reporting and silent modes 2006-04-29 18:44:00 +00:00
reassignEdits.php Rewrite reassignEdits script to be more efficient; support optional updates to recent changes table; add reporting and silent modes 2006-04-29 18:44:00 +00:00
rebuildall.php Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
rebuildImages.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
rebuildInterwiki.inc some unused globals as per #3692 2006-04-30 16:23:01 +00:00
rebuildInterwiki.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildMessages.php µ update 2006-04-19 11:00:08 +00:00
rebuildrecentchanges.inc * (bug 5195) rebuildrecentchanges.php works again; Database::insertSelect now has a parameter for select options. 2006-04-04 06:06:36 +00:00
rebuildrecentchanges.php
rebuildtextindex.inc * Extra newline for pretty output 2005-11-25 06:38:12 +00:00
rebuildtextindex.php Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
recount.sql
redundanttrans.php
refreshImageCount.php First set to NULL so that it changes on the master 2006-03-28 21:56:12 +00:00
refreshLinks.inc unused variables as per #3692 2006-05-01 10:53:59 +00:00
refreshLinks.php Don't use tidy. Command line option to specify the end ID. Clear the link cache after each article to keep memory usage down. 2006-01-26 11:25:26 +00:00
removeUnusedAccounts.inc Rewritten removeUnusedAccounts to be more efficient, print names of inactive accounts 2006-05-05 01:38:22 +00:00
removeUnusedAccounts.php Update site_stats.ss_users after deleting unused accounts, to keep the internal statistics tables consistent 2006-06-20 14:03:58 +00:00
renderDump.php fix error display 2006-06-05 20:35:33 +00:00
runJobs.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
showJobs.php Fix line endings (hope I did this right) 2006-04-19 21:20:03 +00:00
splitLanguageFiles.inc * s~ +$~~ 2006-01-07 13:09:30 +00:00
splitLanguageFiles.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
stats.php live extensions to statistics 2005-12-26 13:11:25 +00:00
tables.sql * (bug 6448) Allow filtering of Special:Newpages according to username 2006-07-10 08:38:48 +00:00
transstat.php oops! the messages are old ones that need deletion (eg deprecated) 2006-04-26 20:20:07 +00:00
trivialCmdLine.php
update.php Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
updateArticleCount.inc.php * Introduce updateArticleCount maintenance script which uses a better check that reflects what Article::isCountable() tests for 2006-07-02 21:35:25 +00:00
updateArticleCount.php * Introduce updateArticleCount maintenance script which uses a better check that reflects what Article::isCountable() tests for 2006-07-02 21:35:25 +00:00
updaters.inc * (bug 6448) Allow filtering of Special:Newpages according to username 2006-07-10 08:38:48 +00:00
updateSearchIndex.inc * Fix updateSearchIndex.php for new schema 2006-04-04 06:37:17 +00:00
updateSearchIndex.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
updateSpecialPages.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
upgrade1_5.php
userDupes.inc Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
userDupes.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
users.sql (bug 764) Add CREATE TEMPORARY TABLES to default database permissions 2006-05-21 23:01:08 +00:00
wiki-mangleme.php patch by Nick Jenkins: 2006-05-24 17:48:13 +00:00
wikipedia-interwiki.sql
wiktionary-interwiki.sql

== 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 place their username and password in an AdminSettings.php
file in the directory above. See AdminSettings.sample for specifics on this.

=== 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

	deleteOldRevisions.php
	Erase old revisions of pages from the database

	dumpBackup.php
	Backup dump script

	dumpHTML.php
	Produce an HTML dump of a wiki

	importDump.php
	XML dump importer
	
	importImages.php
	Imports images into the wiki
	
	importTextFile.php
	Imports the contents of a text file into a wiki page

	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

	update.php
	Check and upgrade the database schema to the current version