|
@@ -188,6 +188,15 @@ class BackupRemove extends Command
|
|
|
$storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
$storage = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
|
|
|
$fileRepository = new FileRepository();
|
|
$fileRepository = new FileRepository();
|
|
|
$fileRepository->setApi($this->api());
|
|
$fileRepository->setApi($this->api());
|
|
|
|
|
+
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'ProxmoxCloudVps',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ VmModel::ofHostingId($params['serviceid'])->get(),
|
|
|
|
|
+ 'Debug remove Backup Cron',
|
|
|
|
|
+ $params['serviceid']
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|
|
$fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())
|
|
|
->findByStorages([$storage]);
|
|
->findByStorages([$storage]);
|
|
|
if($this->configuration()->getBackupStoreDays()){
|
|
if($this->configuration()->getBackupStoreDays()){
|