Skip to content

Commit aff6e46

Browse files
committed
limit to mysql
1 parent 949cdff commit aff6e46

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/Service/ConfigService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class ConfigService {
4545

4646

4747
const MAINTENANCE = 'maintenance';
48+
const DB_TYPE = 'dbtype';
4849
const SELF_SIGNED_CERT = 'self_signed_cert';
4950
const LAST_FULL_RP = 'last_full_rp';
5051

lib/Service/PointService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ private function addIncrementalData(RestoringPoint $point): void {
359359
* @throws Throwable
360360
*/
361361
private function backupSql(RestoringPoint $point) {
362+
if ($this->configService->getSystemValue(ConfigService::DB_TYPE) !== 'mysql') {
363+
return;
364+
}
365+
362366
$path = '';
363367
try {
364368
$path = $this->generateSqlDump();

0 commit comments

Comments
 (0)