Support

Akeeba Backup for Joomla!

#8993 cPanel cron job after Lazy

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 nicholas on Saturday, 13 August 2011 09:45 CDT

user40075
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the forum before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Akeeba Backup version: (unknown)

EXTREMELY IMPORTANT: Please attach your Akeeba Backup log file in order for us to help you with any backup or restoration issue.

Description of my issue:

user40075
Hi Nikko!

"cPanel cron job after Lazy Backup removal" was intended topic name but I hit a wrong key and then couldn't find an edit button to correct the error.

Here is the problem: Rochenhost won't give much help with their cPanel cron setup and says "ask Akeeba." The suggested setup in the Akeeba "howto" does not work. Here is what is suggested there:

/usr/bin/php5-cli /home/myusername/public_html
/administrator/components/com_akeeba/altbackup.php-profile=YourProfileID

Rochen says use this instead:
/usr/bin/php /home/myusername/public_html
/administrator/components/com_akeeba/altbackup.php-profile=YourProfileID

But that doesn't work, either. I am using the free backup which doesn't have an altbackup.php file. So I copied the backup.php from /controllers/ and put it in mod_akeeba and renamed it altbackup.php but that didn't help. Nor did using the file path to the original backup.php

Perhaps this only works with the profesional version?

After hours of trying, any suggestions appreciated.

Best,


fjw

nicholas
Akeeba Staff
Manager
Hi!

There should be a space between altbackup.php and -profile, i.e.
/usr/bin/php5-cli /home/myusername/public_html
/administrator/components/com_akeeba/altbackup.php -profile=YourProfileID


In order for this to work, you have to go to Components, Akeeba Backup and click on the Component Parameters. Set the "Enable front-end and remote backups" to Yes, then enter a Secret Key in the box below. It's best to use a long secret key consisting of only alphanumeric characters, i.e. 0-9, a-z and A-Z.

Alternatively, you can use the following command line which is more performant, works reliably on Rochen and does not require enabling the front-end backup feature:

/usr/bin/php5-cli /home/myusername/public_html
/administrator/components/com_akeeba/backup.php -profile=YourProfileID

(note that we're using backup.php instead of altbackup.php)

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!

user40075
Hi Nikko!

When I tried:
/usr/bin/php5-cli /home/myusername/public_html/administrator/components/com_akeeba/backup.php -profile=1

I got this message:

Could not open input file: /home/myusername/public_html/administrator/components/com_akeeba/backup.php

I asked and was told by Rochen:

That doesn't appear to be a valid path to php, you'll want to re-check your Akeeba documentation. Typically you'd want to use the interpreter at "/usr/local/bin/php", thank you.

But when I tried:

/usr/local/bin/php /home/myusername/public_html/administrator/components/com_akeeba/backup.php -profile=1

I got "restricted access."

The backup log gives this message:

DEBUG |110813 05:01:01|Kettenrad :: Attempting to load from database (backend)
DEBUG |110813 05:01:01| -- Stored Akeeba Factory (backend) not found - hard reset

I won't attempt to interpret all this. I would just be guessing!

And I also note that the backup.php file appears to be in the subfolder "controllers" and not in the Akeeba root folder, if that makes any difference. I copied it to root but that made no difference, either.

Any suggestions appreciated.

fjw

nicholas
Akeeba Staff
Manager
Hi!

The first command line is correct, in the sense that the path to the PHP CLI binary (/usr/bin/php5-cli) is correct, despite what Rochen's support told you. This is the exact command line I am using on both of my sites hosted on Rochen (this on a VPS and another one on a shared server).

However, the backup.php and altbackup.php files are only available in Akeeba Backup Professional. Since you only have Akeeba Backup Core, you can not use this way for automating your backups. You can use the front-end backup feature to schedule your backups, though, as detailed in our 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!

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!