|
|
@@ -212,15 +212,6 @@ class BackupRemove extends Command
|
|
|
}
|
|
|
}
|
|
|
$sizeMax = $this->getWhmcsConfigOption(Cloud\ConfigurableOption::BACKUPS_SIZE, $this->configuration()->getBackupMaxSize());
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'ProxmoxCloudVps',
|
|
|
- __FUNCTION__,
|
|
|
- $fileRepository->fetch(),
|
|
|
- '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)
|