* Database health checks * Cache health checks * Storage write and disk-space checks * Failed queue job monitoring * Production environment diagnostics * Persisted health-check history * Queue retry controls * Scheduler execution controls * Cache and optimisation clearing * Backup creation and retention * Backup deletion * SQLite database backup support * Backup manifests and module metadata * Artisan health and backup commands * Administration navigation * Enterprise permissions * Module registration and tests
13 lines
456 B
PHP
13 lines
456 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; }
|
|
}
|