Support

Akeeba Backup for Joomla!

#23032 Remote Backup Status Check

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by tampe125 on Tuesday, 28 July 2015 02:32 CDT

cperrot
I am trying to find a useful script which allows me to check the backup after the backup has completed. Unfortunately all scripts seem to check the status locally.

Is there a script which checks on the remote server if the backup completed successfully and allows me to send an email if the backup failed?

This is what I use
wget --max-redirect=10000 "http://www.yoursite.com/index.php?option=com_akeeba&view=check&key=YourSecretKey"

/usr/bin/wget "http://www.yoursite.com/index.php?option=com_akeeba&view=check&key=YourSecretKey"

The problem is that view=check is returning Warning if any of backup failed I want to know only the latest backup.

Regards

Cedric

tampe125
Akeeba Staff
Hello Cedric,

on the first run the Check feature will control all the backups, on later runs it will check only the new backups.

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!

cperrot
Hello Davide

Thanks for the quick reply. Would you have also have a shell script which does the checking for me and sends an email in case of a failure?

Regards

Cedric

tampe125
Akeeba Staff
Please take a look at the Scheduling information page, tab Check Backup Status. There are several commands that you can run.
For further information take a lookat the manual page.

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!

cperrot
Hello Davide

I read the manual and there is nothing there. I haven't found any return codes for the /usr/bin/wget "http://www.yoursite.com/index.php?option=com_akeeba&view=check&key=YourSecretKey"
command nor have I found if there is a script which uses above command parses the return code and lets me do something based on unsuccessful completion of the command.

Regards

Cedric

tampe125
Akeeba Staff
There are no returning codes: the script itself will send you an email if any failed backup is found.

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!

cperrot
Do you mean the wget script? if yes do you have a sample?

tampe125
Akeeba Staff
The sample is the one you can see in the manual page or the Scheduling information page:
wget --max-redirect=10000 "http://www.example.com/index.php?option=com_akeeba&view=check&key=SecretKey" -O - 1>/dev/null 2>/dev/null
It's very straight forward, there isn't any extra settings required.

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!

cperrot
thanks for that, but where do I configure the email address to send an email to if the check has failures in it?

tampe125
Akeeba Staff
Component Option, Frontend Backup tab, section Check for failed backups

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!

cperrot
I wanted to send the email from the server which checks the webserver and not from the webserver. Not a problem I will build a script with remote.phar which seems to work quite nicely too.

Thanks for your help.

tampe125
Akeeba Staff
You're welcome!

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!