Regardless of timezone the backup should still execute. If you run the command php artisan schedule:list on the server are your scheduled backups listed? The command php /home/forge/example.com/artisan schedule:run uses your site name in place of example.com in your Forge settings, correct?
Nov 14, 2022
1
Level 4
Laravel Forge Scheduler Not Working
So i set my laravel forge scheduler to run a spatie backup command nightly 0 0 * * *
php /home/forge/example.com/artisan schedule:run
and i have this command in my kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command('backup:clean')->daily()->at('01:00');
$schedule->command('backup:run --only-db')->daily()->at('02:00');
$schedule->command('backup:monitor')->daily()->at('03:00');
}
But the backup does not work as i do not get any email... if i run the command php artisan back:run --only-db it works but the cron job does not seem to work.
Reading the documentation it says daylight saving could affect it not having backup. I am in the UK so i am not sure if that affects it as laravel timezone is UTC.
Is there a solution to this?
Please or to participate in this conversation.