jidanni@jidanni.org wrote:
Isn't there any way via the API to generate the same output as Special:Export?
What query string can generate the same output as dumpBackup.php --current?
You could modify dumpBackup.php to work as a web script. It would be something like this:
<?php define('MEDIAWIKI',true); $IP = realpath( dirname( __FILE__ ) . '/..' ) ); require_once( "$IP/includes/AutoLoader.php" ); require_once( $IP.'/includes/Defines.php' ); require_once("$IP/LocalSettings.php");
include "backup.inc"; $dumper = new BackupDumper( array() ); $dumper->reporting = false; $dumper->dump( WikiExporter::CURRENT, $textMode );
It will be very large, take too much memory, too much time... Daily crontab dumps would be a much better system.