Support

Akeeba Backup for Joomla!

#12332 cron backup not using profile switch

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 Thursday, 17 May 2012 16:57 CDT

davesage
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes - Native Cron, Alternative Cron
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes - nearly all
Joomla! version: 2.5.4
PHP version: public
MySQL version: public
Host: Rochen
Akeeba Backup version: 3.50

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:

After upgrading to 3.5.0 I have reset my cron jobs, I tried native cron but I got the following error in the log files

WARNING |120517 04:20:37|PHP WARNING on line 190 in file /home/.../public_html/libraries/joomla/database/database/mysqli.php:
WARNING |120517 04:20:37|mysqli_ping(): Couldn't fetch mysqli

I then switched to the alternative cron and this works ok, however, both jobs seemed to ignore the profile switch and fired the profile 1 job instead of 2?

/usr/bin/php5-cli /home/.../public_html/cli/akeeba-altbackup.php -profile=2

I've removed the '...' directory name but apart from that this is the command run, have I missed a typo in the switch part or something?

Cheers again for your time!

Hope you are enjoying J and Beyond :-)

Dave

nicholas
Akeeba Staff
Manager
Hi Dave,

Your mistake is that you are typing -profile=2 (single dash) instead of the correct --profile=2 (double dash). Old versions of the script might work with a single dash, but new versions our using Joomla!'s own JApplicationCli API which enforces the UNIX convention of having a double dash in front of "long" options. Geeky story cut short, use a double dash.

Regarding the warning, you can safely ignore that one.

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!

davesage
Hi Nicholas,

I knew it would be something simple!

You might want to update the sections in the documentation as I copied the commands from those pages and they show a single dash (both native and alternative).

Thanks again for your time,

Cheers,

Dave

nicholas
Akeeba Staff
Manager
You are right. For some reason I forgot to update the documentation six versions ago :s I will fix the on-line documentation once I am back in the office. Thank you for the heads up!

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!