To be absolutely fair, what Joomla! is doing for CLI parameters is correct. The fact that it comes from me, who has a beef with a lot of the weird things Joomla does for nearly two decades, since it was called Mambo, says a lot, doesn't it?
Having CRON jobs which run a command line with parameters is something which first appeared in Vixie Cron back in 1987. Yes, that's really 37 years ago, it's not a typo. In fact, Cron is part of the IEEE standard Std1003.2-1992, commonly referred to as "POSIX". Note that there were other similar task schedulers which first appeared in the early 1970s, but they predated and did not conform to the POSIX standard. They all did allow you to run commands with parameters. That's the whole darned point of task scheduling!
To put it bluntly, if your host has not figured out how to offer real CRON jobs which have been around for at least 37 years, conforming to a standard which has been around the past 32 years, I would say that they are doing it wrong.
The usual way to work around subpar hosts like that is to create a bash script (shell script). For example, you could create the file do-backup.sh inside the cli
path of your site with contents like this:
#!/usr/bin/env bash
/path/to/php `pwd`/joomla.php akeeba:backup:take
Then, give it executable permissions (0755) and you should be able to schedule a CRON job calling that script.
If that is not possible, then your server DOES NOT have real CRON jobs; they are merely calling a .php file over the web. That's okay-ish for basic WordPress sites, but that's not enough for any site which could legitimately claim to be based on "modern" design principles the last 20 years. Also note that while your workaround works for small, fast backups, it will fail when the backup time is higher than the PHP maximum execution time, or higher than the web server's timeout waiting for the output of PHP.
When you are up to an outright broken host like that (*cough* OVH *cough*) the only viable solutions, in order of best to worst, are: moving to a decent host, using a third party site monitoring software or service to execute the backup on a schedule, using Akeeba Remote CLI from a machine under your control, or using WebCRON.
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!