diff --git a/src/include/ABHelper.php b/src/include/ABHelper.php index 8e4f220..176eee1 100644 --- a/src/include/ABHelper.php +++ b/src/include/ABHelper.php @@ -419,6 +419,8 @@ public static function backupContainer($container, $destination) { self::backupLog("Generated tar command: " . $finalTarOptions, self::LOGLEVEL_DEBUG); self::backupLog("Backing up " . $container['Name'] . '...'); + $tarBackupTimer = time(); + $output = $resultcode = null; exec("tar " . $finalTarOptions . " 2>&1 " . ABSettings::$externalCmdPidCapture, $output, $resultcode); self::backupLog("Tar out: " . implode('; ', $output), self::LOGLEVEL_DEBUG); @@ -438,13 +440,14 @@ public static function backupContainer($container, $destination) { return $containerSettings['ignoreBackupErrors'] == 'yes'; } - self::backupLog("Backup created without issues"); + self::backupLog("Backup created without issues (took " . gmdate("H:i:s", time() - $tarBackupTimer) . " (hours:mins:secs))"); if (self::abortRequested()) { return true; } if ($containerSettings['verifyBackup'] == 'yes') { + $tarVerifyTimer = time(); self::backupLog("Verifying backup..."); self::backupLog("Final verify command: " . $finalTarVerifyOptions, self::LOGLEVEL_DEBUG); @@ -470,6 +473,8 @@ public static function backupContainer($container, $destination) { } } return $containerSettings['ignoreBackupErrors'] == 'yes'; + } else { + self::backupLog("Verification ended without issues (took " . gmdate("H:i:s", time() - $tarVerifyTimer) . " (hours:mins:secs))"); } } else { self::backupLog("Skipping verification for this container because its not wanted!", self::LOGLEVEL_WARN);