Support

Akeeba Backup for Joomla!

#38823 Problem with the length of time of a schedulded backup

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.2.9
PHP version
8.0
Akeeba Backup version
9.5.1

Latest post by nicholas on Sunday, 02 April 2023 13:32 CDT

[email protected]

A Joomla 4 shedulded task is configured to backup the website. 

As you si on capture1.jpg it takes a lot of time until 70 HOURS !! 

When it's a manually backup capture2.jpg it takes between 1 or 2 minutes. 

The website, is not so visited, it's a small audience website. 

 

I put the logfile (1) of the schedulded task (70h)  

and the logfile (2) of the manually task (1 m 25) 

Both are more than 10 Mb files. 


How to do to have a schedulded task that take a normal time. 

I put the schedulded task priority as High, but it still take a long time. 

[email protected]

New attempt to attach the jpg files. 

 

nicholas
Akeeba Staff
Manager

This is exactly what I described in the documentation.

Using Scheduled Tasks is slower than any other backup method for the reason I explained (the dead time between task execution). Add to that the fact that Lazy Scheduling only gets triggered when there's traffic to your site —which in your case is very sporadic— and you will very easily get a backup which takes forever to run.

Yes, the Lazy Scheduling SUCKS. Please remember that what Joomla is doing with Scheduled Tasks and the Lazy Scheduling to trigger them is nothing new to us. We had already done that in 2011 with the Akeeba Backup Lay Scheduling plugin (Joomla reused the concept and the name of our old plugin). Having had that experience I knew exactly what would go wrong and documented it.

The only way to have reliable backups —and Scheduled Tasks in general— is to trigger Scheduled Tasks with a CRON job which executes every minute.

Even though it sounds redundant, considering you can already scheduled backups using CRON jobs, there's a good reason to still use Scheduled Tasks: you manage your Scheduled Tasks from the much friendlier user interface in Joomla itself while having only one CRON job, regardless of the number of Scheduled Tasks on your site. If your host only allows accessing a URL (pseudo-CRON), no problem, Joomla Scheduled Tasks can still work with that.

Just don't use Lazy Scheduling. Lazy Scheduling is unreliable.

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!