lundi 8 février 2021

Automatic backup not working in Laravel with Spatie

I'm trying to run backup using cron, i'm using spatie-laravel-backup it is working when i run it manually but when i run it using cron using this path on server:

/home/user/public_html && php artisan backup:run >> /home/user/logs 2>&1     

and i'm getting this

/bin/bash: /home/user/public_html: Is a directory"

kernel.php

 protected function schedule(Schedule $schedule)
    {
     $schedule->command('backup:run')->daily()->at('10:00');
    }


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire