When I try to call:
$exitCode = Artisan::queue('backup:run');
Job fails, and I'm getting this exception:
Symfony\Component\Console\Exception\CommandNotFoundException: There are no commands defined in the "backup" namespace. in ../vendor/symfony/console/Application.php:564
add below to app.php
Spatie\Backup\BackupServiceProvider::class,
Already tried. Still not working.
Just to add Artisan::call('backup:run') works, but what I want is to queue the backup.
Artisan::queue('backup:run')
While I run Artisan::call('backup:run'); Its workding fine. But I want to download only database and apply following command:
Artisan::call('backup:run --only-db');
It is not working. Please help
@chinmay235 please create a new issue for that.
@ralphjesy12 If calling the backup command regularly works then your problem is probably related to your app or to Laravel itself, and not this package. Where you already able to fix this?
@freekmurze unfortunately nope, i just used a different method rather than queuing the backup.
Yes, calling the command works Artisan::call('backup:run'), but not Artisan::queue('backup:run').
clearing the cache works for me and showing the command in php artisan list
php artisan cache:clear
php artisan view:clear
php artisan config:cache
php artisan debugbar:clear
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Most helpful comment
clearing the cache works for me and showing the command in php artisan list
php artisan cache:clear
php artisan view:clear
php artisan config:cache
php artisan debugbar:clear