Support

Akeeba Backup for Joomla!

#8827 Mulitple backup files being created

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 Saturday, 26 March 2011 16:57 CDT

user12977
Since the last akeeba upgrade, to 3.2.4, the lazy backup plugin seems to be generating multiple backups each day, instead of one a day.
For one site, for instance, on March 19th, there's a backup with the time 23:06, another at 23:38 and a third at 23:57. All are full site backups, all are the same size. On March 15th, I have 5 of them, and so on for other days.
this is happening on a bunch of my sites
all backups are sent to amazon s3
The plugin parameters say backup frequency in days: 1

Joomla 1.5.22

nicholas
Akeeba Staff
Manager
Please go to your site's Help, System Info menu item and click on the Directory Permissions tab. Are the cache directories listed writable?

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!

user12977
Yes. Checked 3 sites (on different VEs), all have cache directories writable

nicholas
Akeeba Staff
Manager
Do these sites have a moderately high traffic? Multiple backups can occur if a timing error happens when reading/writing the backup lock files. This is possible on sites with a moderately high traffic, or a lot of requests come in 1-2 seconds apart.

If you want a reliable way to schedule your backups, please use a CRON job. The Lazy Scheduling was conceived as a quick-n-dirty solution for small sites on very restrictive shared hosts which disallow CRON jobs. It's not possible to make it work properly on all hosts and sites with a higher traffic.

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!

user12977
These are small sites, with little traffic. This problem just started in the last week. I don't have access to set up a cron job. Did anything change in the last upgrade that could be causing this?

nicholas
Akeeba Staff
Manager
Two versions ago (3.2.3) I changed the storage method of the lock files from database to files, as storing to files is more stable. Have you enabled Joomla!'s FTP mode on those sites by any chance?

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!

user12977
no, not enabled

nicholas
Akeeba Staff
Manager
That beats me :s

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!

sue
I've been havng the same problem.
I'll go check all these various things you mention - but I've been having the same problem for the last couple weeks - Just had 10 emails that backups were made tonight - this isn't the first time this happened. -Have at least 5 other days.
I have it set for once a day. Just went in and looked and found that I didn't have the latest release, so upgraded. Maybe that will help.

What do you consider as moderately high traffic?? The site with this problem gets about 200 visitors/day. I have other sites that occasionally get 2 backups done,but they have much lower traffic. Is there some traffic level over which you don't recommend the lazy scheduler?

nicholas
Akeeba Staff
Manager
Usually the timing issue happens when a traffic spike occurs (many requests coming in with up to 1 second apart) which is more likely on hosts with >1000 visitors/day (ca. 3000 pageviews/day).

There is also another possibility of this issue occurring. If your cache directory is being purged every so often, the lock files produced by the Lazy Scheduling plugin -which are used to mark in progress files and the time of the last backup- will also be removed, causing the scheduling plugin to believe that it has to start a new backup.

Moreover, your backup scheduling settings are very important. They are always expressed in GMT time. If your server is in GMT-6 timezone and you are in, say, GMT+6 timezone you may see a backup occurring twice within the same day in your timezone, in your morning and your evening. That's normal and is due to the timezone differences.

Also, if you delete the backup records you will also see backups repeating in the same day. For example, if you have specified only one backup file to be kept (quota settings) or if you are using any post-processing option (DropBox, S3, etc) your backup archive may be removed at some point. This makes the backup record obsolete and tricks the plugin into believing that the backup is out of date. This will cause perpetual backup attempts.

As I said, I recommend using the plugin as the last ditch attempt on small sites and without post-processing (or, at least, without automatic deletion of backup archives after the post-processing). I strongly recommend using a CRON job with backup.php, altbackup.php or the front-end backup mode with wget/curl to schedule your backups. Operating System-level scheduling is much more stable and suitable for all kinds of sites, as it's not linked to visitor traffic.

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!

user12977
I'm wondering if this has something to do with daylight savings time and the server time. Could the time change be a reason for this?

nicholas
Akeeba Staff
Manager
That would only happen on the day the DST is toggled, especially if your backup happens +/-1 hour on the DST switchover time. However, you mentioned that this happens always, so I guess it's just the well known timing issue with multiple requests coming in at the same time.

Unfortunately, the Lazy Scheduling is a hack. It's not a "real" solution. The only real solution to backup scheduling is CRON. A server which doesn't properly support CRON is, IMHO, a toy server not fit to run anything but personal sites or blogs.

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!