Support

Akeeba Backup for Joomla!

#42254 Backup Notification and Log Cleanup Automation

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5
PHP version
8
Akeeba Backup version
n/a

Latest post by nicholas on Sunday, 07 September 2025 15:05 CDT

komir

Hi, I need some information.

I’ve created a backup process that sends data to Google Cloud. Is it possible to receive an email notification if the backup fails to upload to Google Cloud and is instead stored only locally on the server?

Additionally, how can I automatically delete old log files from the server when the backup process removes old backups?

Thank you!

4M CAD profesionalni CAD alat

nicholas
Akeeba Staff
Manager

It depends on how you are triggering the backup.

If you are using the Front-end Baclup (Legacy API) or JSON API feature yes, you can. Check the Options page of the component. Change "When to send the email" to Upload Failed and customise your email so you receive the information you need.

When you are using a CRON job to run your backup you can configure your CRON daemon to send you the output of the CLI script by email. You can then use email filters to delete backup CRON emails which do NOT contain the word "WARNING". The idea is that failed uploads produce a warning when the upload fails.

For Scheduled Tasks there is no way I can think of. Then again, the number of people using Scheduled Tasks and needing this kind of feature seems to be zero.

Beyond that there is not much you can do. As far as Akeeba Backup is concerned, a failure to upload the backup archive is a regular Warning. You can optionally turn it into an error, but that means that the backup is failed (and the backup archive deleted) when the upload fails which is probably not what you want.

Trying to detect when a backup with an OK status is really a failed upload is a bit tricky because backup profiles are not set in stone. You can take a backup with a profile that has Post-processing set to None (so, it does not upload anywhere) and at a later time change that profile so it now has a Post-processing other than None. If we were to just check for all non-failed backups with local backup archives in every profile that has a Post-processing other than None it would be wrong because in the case I described above the backup would be flagged as having failed to upload. But it was never meant to be uploaded.

If I come up with a better way to detect this kind of backups I will include this as an option to the backup failure notification feature. It's something that I, too, would like to have.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!