Support

Akeeba Backup for Joomla!

#39674 Cron Job - Can't set profile paramater

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
Joomla 5
PHP version
8.2.10
Akeeba Backup version
9.8.1

Latest post by nicholas on Tuesday, 07 November 2023 03:24 CST

deltapapa

Hi,

when I want to create a new cron job and specify profile 2 as a parameter, my hoster shows an error message (see picture)
So the special character '=' is not allowed.
Is there another way to start the 2 profile as a cron job? Can I also use ':'?

 

Thx und wbr

nicholas
Akeeba Staff
Manager

No, you cannot. You really need to talk to your host. They will probably give you instructions about creating a shell script which you will be calling from their CRON facility.

I am disappointed at these pointless, non-standard limitations Mittwald applies. They do not “improve security” by any means. They just act as a roadblock to legitimate uses. Case in point, the fact that they will have you use a shell script is even less secure than allowing real CRON jobs to be defined directly. The shell script can be overwritten by a web-based attack if anything on your site has a vulnerability which allows file writes. This can be used by an attacker to execute code which will help them gain a foothold on your site and take it over. A real CRON job can only be modified if you are logged into the hosting control panel, or via SSH. In other words, a real CRON job can only be modified if the attacker has already taken over your hosting account completely and thoroughly. Therefore, putting an artificial hurdle on using real CRON jobs is AGAINST security best practices. This is why I am disappointed. You are paying them a lot of money and they give you an insecure by design hosting environment. That's shameful.

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!

deltapapa

Hello Nicholas,
Thank you very much for your reply.
I have spoken to Mittwald and also requested this as a feature request, unfortunately without success. They recommended me, just as you wrote, to use a script, which I then call with the cron job.
Now unfortunately I don't know what exactly I have to write in the script, I think the best call will work via wget, right?

I have looked at the examples and the syntax in the extension, but I can't really figure it out.
Where do I have to insert the parameters here?

wget --max-redirect=10000 "https://domain.de/index.php?option=com_akeebabackup&view=Backup&key=xxxxxxxxxxx" -O - 1>/dev/null 2>/dev/null

Maybe you can help me with that.


I also got the tip to use the task scheduler of Joomla, but unfortunately I don't really understand the call with the Akeeba Backup - CLI-only Backup.

 

WBR,

deltapapa

nicholas
Akeeba Staff
Manager

Go to Akeeba Backup. Choose profile #2 which is the one you want to take backups with. Click on Schedule Automatic Backups. Scroll down to Front-end Backup Feature. There's a Wget entry which tells you the command line you need to use.

That's as far as we can help. How to run this command with or without a shell script is something your host needs to tell you. This is what you are paying them for. You are not paying them just for the server environment; you could get that cheaper from Amazon Lightsail. The extra money you're paying is for them to manage the server and help you with simple questions like that. If they cannot help you with something that stupidly simple, do yourself a favour and move to a competent host. If you ask me for hosting recommendations, I have all my personal sites on Rochen since the Joomla! 1.0 days. Great hosting, great price, and great support, so naturally that's what I recommend.

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!