Support

Akeeba Backup for Joomla!

#41563 Pre-check script before Joomla Backup Task

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.2.3
PHP version
8.2.26
Akeeba Backup version
9.9.11

Latest post by tampe125 on Wednesday, 05 February 2025 11:04 CST

dsic-se-support-web

Hello Akeeba support team,

We would like to know if there is a way to run a pre-check step before a backup task can be performed.

It could be in the form of an executable script, or reading a file at some path.

 

Our use case is having NFS shares as target path. It can potentially lock up syscalls until they time out because the other end is in outage, for instance.

Our pre-script would test the availability of the target output path, with a timeout deadline, which is something I believe is not really possible at the PHP level.

 

As an aside, joomla.php is scheduled (cron) to run every minute and such requests will pile up if something goes wrong.

 

Best Regards,

Marc

tampe125
Akeeba Staff

Hello,

I think you can easily fix your issue by creating a small bash script that should perform these kind of checks and chain it with the actual call to be backup process. Something like:

your_script.sh && path/to/php joomla.php akeeba:backup:take

Your script should return 0 on success, non-zero when it can't probe the backup output path.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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!