aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/backup.inc
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup live hack from wmf-deployment r53208 a bit: DB selection using load ↵Brion Vibber2009-09-141-14/+12
| | | | | | | | | | | | | | | balancer. Should fix a couple regressions or possible regressions: * Hack was pulling the main LB's DB_SLAVE connection although we were deliberately opening a new connection. Could have caused problems when we were fetching other things from the local database in the middle of an export. * We no longer lose the connection timeout override. However we still have a regression: * --server option is ignored (but we're now pulling from the 'backup' group, so we at least have some kind of consistency :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/56347
* Pull wgDBuser and wgDBpassword if adminuser and adminpassword are undefined, ↵Andrew Garrett2009-09-081-0/+8
| | | | | | | fixes dumpBackup.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/56027
* * Add XML log dump supportAaron Schulz2008-09-181-3/+11
| | | | | | | * TODO: make importer Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/40968
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-3/+8
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* Some experimental support for including upload data in XML export, as ↵Brion Vibber2008-03-041-0/+2
| | | | | | | | | | | | | | | | specced. Usable with --uploads option on dumpBackups.php Some issues: * doesn't respond to the current v full-history modes * won't pick up file entries with no corresponding page * on default config, you may end up with 'localhost' in URLs :P * synchronization and mutability problems ** DB lookups are made in the middle of the dump and may not be in sync with state at the beginning of the dump. ** URL to current version at time of dump could point to a different, future version in future Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31532
* * (bug 12184) Exceptions now sent to stderr instead of stdout for command-lineBrion Vibber2007-12-061-1/+2
| | | | | | | | | | scripts, making for cleaner reporting during batch jobs. PHP errors will also be redirected in most cases on PHP 5.2.4 and later, switching 'display_errors' to 'stderr' at runtime. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28222
* prettify:Brion Vibber2007-03-091-4/+7
| | | | | | | | * set_timeout() -> setTimeout() * remove a couple obsolete references from dump code Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20290
* dumpBackup should instantiate correct database class for db typeRiver Tarnell2007-03-091-4/+5
| | | | | | | add set_timeout() method to Database Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20276
* The war on redundant ampersand usage!Nick Jenkins2007-01-221-1/+1
| | | | | | | | | | | | * Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );" * convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();" For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too. Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19598
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* For the maintenance/ directory files:Nick Jenkins2007-01-121-1/+2
| | | | | | | | | | | | * Removing unused local vars. * Removing unused global declarations. * removing one or two pass-by-refs parameter declarations where not required by PHP5. * Adding some local variable declarations / initializations (initialized to either to array(), null) to keep static code analyzer happy. * Changing lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to be like this: "list ($page, $archive) = $dbw->tableNamesN( 'page', 'archive' );". * Add one or two braces to if-else blocks. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19145
* * Fix regression in streaming page dump generationBrion Vibber2006-11-041-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17405
* * Fix PHP notice and estimates for dumpBackup.php and friendsBrion Vibber2006-10-111-4/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16935
* Abolished $wgDBname as a unique wiki identifier, it doesn't work with the ↵Tim Starling2006-10-041-2/+1
| | | | | | | | | new-fangled feature we call "table prefixes". Instead use wfWikiID() for an identifier containing the DB name and the prefix if there is one, and wfMemcKey() for cache key construction. Caches for wikis with table prefixes will be lost on upgrade, caches for wikis without table prefixes will be preserved. Custom cache keys in extensions can be migrated at leisure. Extensions which write to core cache keys should be migrated ASAP, as I have done with Special:Makesysop. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16791
* Removed apparently useless header() call, generates warning.Tim Starling2006-10-031-3/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16750
* Remove forced dereferencements (new() returns a reference in PHP5)Antoine Musso2006-07-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15532
* * dumpBackup can optionally compress via dbzip2Brion Vibber2006-06-271-0/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15080
* * --force-normal parameter on dump scripts to force check for ICU extensionBrion Vibber2006-05-101-0/+9
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14151
* Update the FSF's address in all these GPL stub headersBrion Vibber2006-04-051-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13489
* * Fix --report interval option for dumpTextPassBrion Vibber2006-02-191-0/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13059
* * Use revision rate for ETA in dump generation; it tends to be more stableBrion Vibber2006-01-261-9/+21
| | | | | | | than the per-page count for full-history dumps. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12870
* fix $wgDebugDumpSql for backup bits; quick hack, flag wasn't passed. need a ↵Brion Vibber2006-01-221-2/+3
| | | | | | | cleaner func for opening a second connection Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12828
* * Added wfDie() wrapper, and some manual die(-1), to force the return codeBrion Vibber2006-01-141-2/+2
| | | | | | | to the shell to return nonzero when we crap out with an error. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12660
* * s~\t+$~~Ævar Arnfjörð Bjarmason2006-01-071-28/+28
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12476
* * s~ +$~~Ævar Arnfjörð Bjarmason2006-01-071-4/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12472
* * Added plugin interface for dumpBackup, so additional filters and outputBrion Vibber2005-12-141-13/+48
| | | | | | | sink types can be registered at runtime from an extension Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12104
* * Two-pass data dump for friendliness to the DB (--stub, then dumpTextPass.php)Brion Vibber2005-10-161-0/+227
* Data dump 'prefetch' mode to read normalized text from a prior dump (requires PHP 5, XMLReader extension) Maybe these will keep dammit from killing our dump runs... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11377