Support

Akeeba Backup for Joomla!

#12807 CRON not running

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 on Tuesday, 31 July 2012 18:00 CDT

user6321
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
https://www.akeebabackup.com/documentation/akeeba-backup-documentation/automating-your-backup.html#frontend-backup
Joomla! version: 2.5.6
PHP version: 5.3.14
MySQL version: 5.5.23-55
Host: Hostgator
Akeeba Backup version: 3.5.2

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.
Link:

Description of my issue:

Hi there Nicholas, hope you can help.

Noticed my cron frontend backups for my 2.5 websites are not working. They are supposed to make a backup to my server and send a copy to dropbox. Instead, there is no backup on the server, none sent to dropbox and no email.

I have been using the cron:
/usr/local/bin/php /home/username/public_html/website/administrator/components/com_akeeba/backup.php -profile 4 -description "name Dropbox" >/dev/null 2>&1

It works for my older 1.5 websites, using akeeba 3.4.3, and used to work for the 2.5 websites, but not now. I'm not sure why??

So am updating the cron to this:
/usr/bin/wget --max-redirect=10000 --output-document=/dev/null "http://www.website.com/index.php?option=com_akeeba&view=backup&key=password&format=raw&profile=4"

Does this look correct to trigger the cron??

And are there any other parameters that can be added? I see the one for the profile number, but is there one for a description?

I'll do another test tonight and retest.

Thanks in advance!

nicholas
Akeeba Staff
Manager
I suppose that /usr/local/bin/php is the PHP CGI executable which is not compatible with Akeeba Backup 3.5.x's CRON scripts. You have to ask your host for the path to the PHP CLI executable and use that instead. I've explained why that happens in many other public tickets, you can search them if you're interested on the story behind this change.

Moreover, you will have to make two more changes:
1. Change /home/username/public_html/website/administrator/components/com_akeeba/backup.php with /home/username/public_html/cli/akeeba-backup.php
2. Use double dash for parameters and put an equals sign between parameter name and value, e.g. replace -profile 4 with --profile=4

It's all in the (updated) documentation :)

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!

user6321
Hi again Nicholas, thanks for the super quick reply.

After testing, here is what worked for me on a shared hostgator account:
/usr/bin/php-cli /home/accountname/public_html/cli/akeeba-backup.php --profile=yournumber

From hostgator support, it needs the -cli added to their regular /usr/bin/php to connect to cli. According to a ssl request using putty, it should be /usr/local/bin... , but it wouldn't work with this added.

So for hostgator, it's /usr/bin/php-cli . Hope this helps out.

Thanks again for the programme. Restores, site transfers, testing... job critical tasks all done in minutes. Appreciated!

nicholas
Akeeba Staff
Manager
Thank you for your feedback! Yes, it does help and I'm adding that to the documentation for the next version. Thanks!

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!