spatie/laravel-backup

Exception in sending Slack notification skips cleanup of other disks.

Opened this issue · 0 comments

Context:
I've two destination disks set up for backups. first for daily backup of all files and db and second for hourly backup of only db.

Cleanup is run daily at 1:00 AM. Due to some Slack issues, the notifications stopped being sent.

Now when the cleanup command runs, it cleans up the first disk, tries to send a notification which fails, it exits the whole process, leaving the second disk as it is.

When I checked, my backup storage exceeded 1.1TB due to this which is normally 200GB.

Can sending notification failure be silently failed and complete the cleanup process of all disks so this does not happen to someone else?