From ea047767eb85d26c332cfa7b7ed5cd8c1d8bc69c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 27 Jun 2006 04:42:53 +0000 Subject: [PATCH] * dumpBackup can optionally compress via dbzip2 --- RELEASE-NOTES | 2 ++ maintenance/backup.inc | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ac73873922..440687e58c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -572,6 +572,8 @@ Some default configuration options have changed: if it's not there, instead of throwing a fatal error * (bug 672) Add MathAfterTexvc hook * Update to Piedmontese localization (pms) +* dumpBackup can optionally compress via dbzip2 + == Compatibility == diff --git a/maintenance/backup.inc b/maintenance/backup.inc index 02c158be71..d3603bd10e 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -22,6 +22,11 @@ * @subpackage SpecialPage */ +class DumpDBZip2Output extends DumpPipeOutput { + function DumpDBZip2Output( $file ) { + parent::DumpPipeOutput( "dbzip2", $file ); + } +} class BackupDumper { var $reportingInterval = 100; @@ -44,6 +49,7 @@ class BackupDumper { $this->registerOutput( 'file', 'DumpFileOutput' ); $this->registerOutput( 'gzip', 'DumpGZipOutput' ); $this->registerOutput( 'bzip2', 'DumpBZip2Output' ); + $this->registerOutput( 'dbzip2', 'DumpDBZip2Output' ); $this->registerOutput( '7zip', 'Dump7ZipOutput' ); $this->registerFilter( 'latest', 'DumpLatestFilter' ); -- 2.20.1