|
|
@@ -212,6 +212,15 @@ class BackupRemove extends Command
|
|
|
}
|
|
|
}
|
|
|
$sizeMax = $this->getWhmcsConfigOption(Cloud\ConfigurableOption::BACKUPS_SIZE, $this->configuration()->getBackupMaxSize());
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'ProxmoxCloudVps',
|
|
|
+ __FUNCTION__,
|
|
|
+ ['used' => $fileRepository->getSizeInGb(),'max' => $sizeMax],
|
|
|
+ 'Debug remove Backup Cron',
|
|
|
+ $params
|
|
|
+ );
|
|
|
+
|
|
|
if($sizeMax && $sizeMax!="-1" && $fileRepository->getSizeInGb() > $sizeMax){
|
|
|
$this->output->writeln(sprintf("The maximum size set for a backup has been exceeded of %s GB", $fileRepository->getSizeInGb()- $sizeMax ));
|
|
|
foreach ($fileRepository->sortByTime()->fetch() as $id => &$backup)
|