21 lines
484 B
PHP
21 lines
484 B
PHP
<?php
|
|
|
|
namespace Modules\Enterprise\Console;
|
|
|
|
use Illuminate\Console\Command;
|
|
use Modules\Enterprise\Services\BackupService;
|
|
|
|
final class BackupPruneCommand extends Command
|
|
{
|
|
protected $signature = 'enterprise:backup-prune';
|
|
|
|
protected $description = 'Delete backups older than the configured retention period.';
|
|
|
|
public function handle(BackupService $service): int
|
|
{
|
|
$this->info($service->prune().' backup(s) pruned.');
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|