Support

Akeeba Backup for Joomla!

#40558 Task programmed to generate the url

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
4.4.2
PHP version
8.2
Akeeba Backup version
9.9.0

Latest post by nicholas on Wednesday, 10 April 2024 08:15 CDT

Ingenieria

Good afternoon,

The problem I have is that I followed the tutorial to do a scheduled task.

First I set up the akeeba to upload the copy files to the drive and so far so good.

The problem comes when trying to automate this task and make copies automatically through the url.

I have followed this tutorial, from

Setting up your site for lazy backup scheduling

 

https://www.akeeba.com/documentation/akeeba-backup-joomla/automating-your-backup.html#joomla-scheduled-tasks

 

The case is that once done everything and generated the url and generated the CLI task (because it does not let me create a basic one I get that I do not have permissions when I am superadmin) from the administrator never gets to run the task and launching the task from the url does not work either.

System Task
system
The ticket information has been edited by Antiun (Ingenieria).

nicholas
Akeeba Staff
Manager

A bite earlier in the documentation we explain the caveats of scheduling, one of which is that Lazy Scheduling is very unreliable. It will only execute (a small part of) a task when there is user activity on your site, i.e. when someone loads a page on your site. Since the backup requires a lot of small chunks of work to take place one after the other, ideally with as little time between them as possible, this would require constant site access. This is not the case on most sites which is why you might experience the task starting at the wrong time, taking too long, or even not start at all.

The other solution you have is to trigger Joomla's evaluation of scheduled tasks periodically, by accessing a URL or with a CRON job. I am not sure if this an option for you, and I really mean I am not sure because of the wording of your last paragraph.

If you can execute CLI CRON jobs that's the best approach. Have one execute very minute to trigger the scheduled tasks.

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!

nicholas
Akeeba Staff
Manager

I also noticed something else.

You said that you created a CLI-only task for Akeeba Backup but you are using Lazy Scheduling. This will never work.

As noted in the documentation, the "Akeeba Backup – CLI-only Backup" task type will only work when you are triggering Joomla's Scheduled Tasks with a CLI-based CRON job. There is a different task variant called "Akeeba Backup – Take a Backup" which will work with Lazy Scheduling.

That said, I am asking you again to read "DANGER AHEAD: Caveats on using Joomla Scheduled Tasks" to understand how Joomla Scheduled Tasks work and why Lazy Scheduling is a bad idea for running backups, especially what I have documented under "Lazy scheduling may lead to inconsistent backups" under that page.

Do keep in mind that we came up with Lazy Scheduling more than a decade before Joomla did, and we discontinued it because it was extremely unreliable for backups. If your backend backup takes more than a minute to run, using Lazy Scheduling to automate will be a net negative experience, if not immediately and definitely at some point in time. Lazy Scheduling is only suitable for very small, very fast, very unimportant tasks such as resizing images, publishing/unpublishing content on a rough schedule, etc. It's not a good fit for critical, long-running processes like taking a backup.

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!