create cron for backing up db

This commit is contained in:
2025-09-24 14:42:46 +03:30
parent c43909574e
commit fadc8379d9
7 changed files with 69 additions and 3 deletions

View File

@@ -39,6 +39,9 @@ class Kernel extends ConsoleKernel
$schedule->command("webservice:roadobserved --daily-mode")
->dailyAt('00:45')->appendOutputTo(storage_path('logs/nikarayan.log'));
$schedule->command("db:backup")
->weekly()->at('03:00')->appendOutputTo(storage_path('logs/mariadb-backup.log'));
}
/**