Support

Akeeba Backup for Joomla!

#18561 Cronjob doesn't work

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 Wednesday, 18 December 2013 07:33 CST

enserk
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.

Description of my issue:
Hi everybody, as it seems my hosted does not support the nativ cron job. So I tried to find another way to automize my backup. I found the following script:
<?php
define('SITEURL', ''); // Base URL of your site
define('SECRETKEY', ''); // Your secret key
define('PROFILE',2); // The profile's ID

// ====================== DO NOT MODIFY BELOW THIS LINE ==================
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,
SITEURL.'/index2.php?option=com_akeeba&view=backup&key='.
SECRETKEY.'&format=raw&profile='.PROFILE.'&format=raw');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION,TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS,10000); # Fix by Nicholas
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Sorry, the backup didn't work.";
else
echo $buffer;
?>
but I get the sorry .... message.
Could you help me with that problem?

tampe125
Akeeba Staff
Hello Klaus,

the backup starts? Do you get any error message?
Can you please ask your hosting if they're blocking incoming connections?

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!

enserk
I have now tried another script:
<?php
exec("env -i /usr/bin/php5 -f /www/htdocs/w00ecd41/CMS/cli/akeeba-altbackup.php&profile=2 2>&1", $out, $result);
echo "Returncode: " .$result ."<br>";
echo "Ausgabe des Scripts: " ."<br>";
echo "<pre>"; print_r($out);

?>

and also have some log files:

enserk
problem is solved now: it was a max execution time problem!

tampe125
Akeeba Staff
I'm glad you worked it out!

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!