MediaWiki  REL1_24
dumpTextPass.php
Go to the documentation of this file.
00001 <?php
00027 $originalDir = getcwd();
00028 
00029 require_once __DIR__ . '/commandLine.inc';
00030 require_once __DIR__ . '/backupTextPass.inc';
00031 
00032 $dumper = new TextPassDumper( $argv );
00033 
00034 if ( !isset( $options['help'] ) ) {
00035     $dumper->dump( true );
00036 } else {
00037     $dumper->progress( <<<ENDS
00038 This script postprocesses XML dumps from dumpBackup.php to add
00039 page text which was stubbed out (using --stub).
00040 
00041 XML input is accepted on stdin.
00042 XML output is sent to stdout; progress reports are sent to stderr.
00043 
00044 Usage: php dumpTextPass.php [<options>]
00045 Options:
00046   --stub=<type>:<file> To load a compressed stub dump instead of stdin
00047   --prefetch=<type>:<file> Use a prior dump file as a text source, to save
00048               pressure on the database.
00049               (Requires the XMLReader extension)
00050   --maxtime=<minutes> Write out checkpoint file after this many minutes (writing
00051               out complete page, closing xml file properly, and opening new one
00052               with header).  This option requires the checkpointfile option.
00053   --checkpointfile=<filenamepattern> Use this string for checkpoint filenames,
00054               substituting first pageid written for the first %s (required) and the
00055               last pageid written for the second %s if it exists.
00056   --quiet     Don't dump status reports to stderr.
00057   --report=n  Report position and speed after every n pages processed.
00058               (Default: 100)
00059   --server=h  Force reading from MySQL server h
00060   --current   Base ETA on number of pages in database instead of all revisions
00061   --spawn     Spawn a subprocess for loading text records
00062   --help      Display this help message
00063 ENDS
00064     );
00065 }