This commit is contained in:
Bozhidar 2024-04-29 11:32:35 +03:00
parent 99413b67d8
commit 9e18e7a245
2 changed files with 5 additions and 0 deletions

View file

@ -30,6 +30,8 @@ class RunBackup extends Command
*/
public function handle()
{
// TODO - Don't run backups parallel
return;
// Delete backups older than 7 days
$findBackupsForDeleting = Backup::where('created_at', '<', now()->subDays(7))->get();
foreach ($findBackupsForDeleting as $backup) {

View file

@ -31,6 +31,9 @@ class RunHostingSubscriptionsBackup extends Command
*/
public function handle()
{
// TODO - Don't run backups parallel
return;
// Delete backups older than 7 days
$findBackupsForDeleting = HostingSubscriptionBackup::where('created_at', '<', now()->subDays(7))->get();
foreach ($findBackupsForDeleting as $backup) {