spatie / laravel-backup

A package to backup your Laravel app
https://spatie.be/docs/laravel-backup
MIT License
5.65k stars 763 forks source link

Backup failed because There are no files to be backed up #1549

Closed ultrono closed 2 years ago

ultrono commented 2 years ago

Hi,

I've been using this package for ages without issue. I have a Laravel application running version 6.16.5 of this package.

I'm only backing up the database and have a scheduled command defined as followed:

$schedule
    ->command(\Spatie\Backup\Commands\BackupCommand::class, ['--only-db'])
    ->everyFourHours();

Again, this has worked without issue for a long time.

Running php artisan backup:run --only-db outputs: "Backup failed because There are no files to be backed up.."

Running php artisan backup:run works, both files and the database are backed up.

I did see a random issue that recommended I change the config setting backup.source.files.include to an empty array. However, that gave the same error as above.

Many Thanks

Rob

ultrono commented 2 years ago

Tried upgrading to to 7.8.0.

Running php artisan backup:run --only-db still gives the same output:

[user@domain public_html]$ php artisan backup:run --only-db
Starting backup...
Dumping database tasks...
Determining files to backup...
Backup failed because There are no files to be backed up..
#0 /home/user/public_html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php(163): Spatie\Backup\Exceptions\InvalidBackupJob::noFilesToBeBackedUp()
PaolaRuby commented 2 years ago

Feel free to make a PR to fix that

coziboy commented 2 years ago

php artisan backup:run --only-db

same here.. i hope someone will make a PR to fix this issue

angeljqv commented 2 years ago

i hope someone will make a PR to fix this issue

@coziboy mobody gonna make PR for you, make it yourself, don't be lazy and contribute to the community