Support

Akeeba Backup for Joomla!

#40699 Multiple backups per day

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.4
PHP version
8.1.28
Akeeba Backup version
9.9.2

Latest post by nicholas on Sunday, 12 May 2024 13:52 CDT

erycdigital

I don't think this is an issue with Akeeba Backup per se, but wondering if you could advise.

Essentially, our servers went down as we steamrollered through our storage by having too many akeeba backups. We use Watchful to activate akeeba backup remotely. I've attached the quota settings and the list of backups from 11th May. As you can see there are many. Basically, we use Watchful to trigger a single nightly backup, with maximum of 2 days, and a count max of 4, with a monthly one remaining. We also upload to Google Drive with a larger count.

Is there a setting available that will delete duplicates backups in the same day (or same day and same size)? I'm conscious of this happening again (I have contacted Watchful as I suspect it is them) and looking at ways of mitigating this?

nicholas
Akeeba Staff
Manager

I would recommend a few things.

First of all, you don't need to keep the backup on the web server after uploading it to Google Drive. This is an overkill. As per your second screenshot, you are keeping way too many files! There are two solutions to that:

  1. Akeeba Backup has separate local and remove quotas. You can have the local quota to be a Count Quota with a value of 1, meaning that it will only keep the files of the last backup archive taken with that backup profile (whenever it was taken) on the server, deleting the files of all previous backups.
  2. You can change the file name of the backup archive to something like site-[HOST]-[DATE]-[RANDOM]. Since it does not include the time component, any backup taken on the same day will have the same filename. Even though multiple backup records will appear to have their files stored on the server at the same time, multiple backups taken on the same day will only actually have the latest backup taken present, as the backup archive file will be overwritten every time the backup runs in the same day.

Options A and B are mutually exclusive! DO NOT combine options A and B, you're going to be deleting all backup archives you're taking. Option A is the newest and most preferrable way to go about it. Option B was a "hack" we were recommending before separate local and remote quotas were available.

Moreover, you can configure the post-processing engine to delete the backup archives from your web server after they are uploaded to remote storage. This was the default setting; you have changed it. The downside to that is that if you want to restore your site and the site is completely broken you will need to download the backup files from Google Storage to your local machine, then upload them to your site. This increases the complexity of restoration ever so slightly, and the time to recover quite a bit (depending on how long download and upload takes).

As for why multiple backups run on the same day, yep, that is something you need to check with Watchful. It's either a runaway backup, or a misconfiguration of when the backups are supposed to run. 

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!