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