wiki.techinc.nl/maintenance
2006-04-16 06:31:19 +00:00
..
archives langlinks table 2006-04-11 14:56:04 +00:00
dtrace some example dtrace scripts 2005-08-15 01:46:19 +00:00
mysql5 langlinks table 2006-04-11 14:56:04 +00:00
oracle trackbacks table for oracle 2005-08-02 13:49:01 +00:00
storage Don't lock page table rows 2006-04-16 06:31:19 +00:00
.htaccess
addwiki.php * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
alltrans.php * Trivial script to print out all avalible messages, useful for other scripts 2005-06-24 02:19:13 +00:00
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 Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +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 Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00:00
checktrans.php revert, wrong file 2005-07-06 22:33:08 +00:00
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 Argument with -- alone specifies that the following arguments are not options 2006-04-16 06:29:44 +00:00
convertLinks.inc * s~\t+$~~ 2006-01-07 13:31:29 +00:00
convertLinks.php Phpdoc comments and place holder. Part of the subpackage "maintenance", archives in subpackage "maintenanceArchive" 2004-09-03 20:33:01 +00:00
counter.php * A function for pretty counts 2005-11-01 19:17:31 +00:00
database.sql
delete-idle-wiki-users.pl perl script for deleting user accounts with no contributions, by Ralf Baechle 2005-06-25 14:24:08 +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
diffLanguage.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +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 Fix typos identified by Nick Jenkins with his magic tool o' doom 2006-04-11 07:15:34 +00:00
dumpHTML.php * s~\t+$~~ 2006-01-07 13:31:29 +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 restoring 2005-05-16 06:47:24 +00:00
dumpReplayLog.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
dumpTextPass.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
duplicatetrans.php * Adding a tool to find duplicate translations 2005-08-10 22:11:09 +00:00
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 * rmed redundant code 2005-04-06 17:53:58 +00:00
FiveUpgrade.inc put TYPE back in, now as it's back in 5.1 ;-) 2006-04-08 21:11:13 +00:00
fixSlaveDesync.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
fixTimestamps.php Some semblance of working order 2006-04-16 06:30:35 +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
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 Do onArticleCreate updates upon page import 2006-04-14 18:00:23 +00:00
importTextFile.php Update recent changes with an event upon page import; can be switched off with --norc 2006-04-14 17:36:52 +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 Remove some stray executable bits 2006-04-04 07:57:48 +00:00
initStats.php Add --update option to avoid overwriting existing columns other than ss_total_edits and ss_good_articles 2006-04-08 22:02:51 +00:00
interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
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 filename error 2005-08-15 12:54:55 +00:00
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 * s~ +$~~ 2006-01-07 13:09:30 +00:00
mwdocgen.php Remove some stray executable bits 2006-04-04 07:57:48 +00:00
mwdoxygen.cfg Unsupported doxygen configuration: 2005-08-11 00:28:51 +00:00
namespace2sql.php Fix #4418: remove $id and $header that causes conflicts 2006-01-03 11:59:39 +00:00
namespaceDupes.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +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 Somebody broke parser tests by adding a required table. 2006-04-12 07:46:57 +00:00
parserTests.php Update the FSF's address in all these GPL stub headers 2006-04-05 07:43:17 +00:00
parserTests.txt * (bug 534) Fix regression that broke slashes in extension tag parameters 2006-04-08 04:40:09 +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 * Adding a trailing ?> 2006-03-07 13:32:27 +00:00
portal.php * s~\t+$~~ 2006-01-07 13:31:29 +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 the contents of a text file into a wiki page 2006-04-14 17:24:43 +00:00
reassignEdits.inc Maintenance script to reassign edits from one user to another 2006-01-26 21:41:40 +00:00
reassignEdits.php Maintenance script to reassign edits from one user to another 2006-01-26 21:41:40 +00:00
rebuildall.php typo 2005-09-17 07:52:33 +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 http/https only please 2006-02-09 01:48:24 +00:00
rebuildInterwiki.php * s~\t+$~~ 2006-01-07 13:31:29 +00:00
rebuildMessages.php Remove some stray executable bits 2006-04-04 07:57:48 +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 Fix include 2004-09-07 02:20:02 +00:00
rebuildtextindex.inc * Extra newline for pretty output 2005-11-25 06:38:12 +00:00
rebuildtextindex.php * s~ +$~~ 2006-01-07 13:09:30 +00:00
recount.sql Reset the additional fields; committing live hack from Wikimedia 2005-08-17 07:52:21 +00:00
redundanttrans.php * Removed a redundant variable by the name of 'redundant' from this redundancy 2005-06-21 01:31:16 +00:00
refreshImageCount.php First set to NULL so that it changes on the master 2006-03-28 21:56:12 +00:00
refreshLinks.inc Use non-recursive mode when doing refreshLinks 2006-04-12 04:48:36 +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.php * Count log entries too, for uber-anal-completeness' sake 2006-04-04 02:54:55 +00:00
runJobs.php * Adding a trailing ?> 2006-03-07 13:32:27 +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 langlinks table 2006-04-11 14:56:04 +00:00
transstat.php * Added wfDie() wrapper, and some manual die(-1), to force the return code 2006-01-14 02:49:43 +00:00
trivialCmdLine.php * Fixed up the trivial command line example so that it doesn't crash in a 2005-05-25 04:14:19 +00:00
update.php Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
updaters.inc langlinks table 2006-04-11 14:56:04 +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 * (bug 2583) Add --missinig option on rebuildImages.php to add db entries 2005-06-28 21:50:26 +00:00
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
userFunctions.inc * Count log entries too, for uber-anal-completeness' sake 2006-04-04 02:54:55 +00:00
users.sql Don't touch the administrator account! Bug 5043. 2006-03-02 02:21:12 +00:00
wikipedia-interwiki.sql moved external links to where they should be 2005-06-01 19:13:03 +00:00
wiktionary-interwiki.sql Add basic support for table prefixes to the installer. (Probably will fail on upgrades yet.) .sql files should still be usable 'raw' on a wiki with no prefix. 2004-12-01 13:15:13 +00: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 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
	
	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