Skip to content

Commit

Permalink
Fix post backup scruot execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Jun 23, 2023
1 parent d45b783 commit 8cbde44
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/scripts/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@
goto abort;
}

ABHelper::handlePrePostScript($abSettings->preBackupScript);


if ($abSettings->backupMethod == 'stopAll') {
ABHelper::backupLog("Method: Stop all container before continuing.");
Expand All @@ -139,14 +141,11 @@
}
ABHelper::$currentContainerName = null;

ABHelper::handlePrePostScript($abSettings->preBackupScript);

if (ABHelper::abortRequested()) {
goto abort;
}
} else {
ABHelper::backupLog("Method: Stop/Backup/Start");
ABHelper::handlePrePostScript($abSettings->preBackupScript);

if (ABHelper::abortRequested()) {
goto abort;
Expand Down Expand Up @@ -193,8 +192,6 @@
}
ABHelper::$currentContainerName = null;

ABHelper::handlePrePostScript($abSettings->postBackupScript);

if (ABHelper::abortRequested()) {
goto abort;
}
Expand All @@ -213,6 +210,8 @@

continuationForAll:

ABHelper::handlePrePostScript($abSettings->postBackupScript);

/**
* FlashBackup
*/
Expand Down

0 comments on commit 8cbde44

Please sign in to comment.