Support

Akeeba Backup for WordPress

#42493 Delete local backups when upload fails

Posted in ‘Akeeba Backup for WordPress’
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

WordPress version
6.8.3
PHP version
8.3
Akeeba Backup version
Newest

Latest post by alex.preyer on Thursday, 04 December 2025 01:38 CST

alex.preyer

Hi,

I'm using Akeeba Backup to back up over 200 Wordpress sites. It is the most stable solution I ever used.

But I'm  always looking to make the backup workflow better :-)

 

My standard workflow is:

- Akeeba doing a full site backup 

- uploading it to an FTP server

- no local backups

 

Sometimes, fortunately very seldom, the remote backup space is not reachable. So Akeeba does the backup, but fails to upload it. So over time there are backup files locally on the storage, which I have to delete manually.

Is there a way that Akeeba will clean up this, for example at the next successfull backup?

Thanks in advance

Alex

nicholas
Akeeba Staff
Manager

Setting "Fail backup on upload failure" to Yes in the Configuration will delete the local files of the failed upload right away. The downside is that in this case you are left with no backup.

Another alternative is to set the Enable Count Quota to Yes and set Count Quota to 1 under "Local Files Quotas". This will delete the local files of the failed upload after the next backup is taken.

Which one you should use depends on your available disk space, and how much risk you are willing to take.

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!

alex.preyer

Thanks Nicholas for the fast response. Thats a perfect solution for me.

 

One last question on this. Is there a way to bulk change settings from Akeeba, so I do not have to login on each site manually?

nicholas
Akeeba Staff
Manager

I suspect your question is how you can enable the local files count quota and set its value to 1 across different backup profiles and dozens of sites. My recommendation would be using an automation tool such as Ansible or Puppet and our WP-CLI integration which allows you to set values on individual settings on each backup profile.

Run wp help akeeba on your site (assuming WP-CLI is installed in your $PATH as wp) to see all the available commands. You can experiment on a test site and create reproducible steps. Remember that the commands which read the profiles and configuration can return raw JSON using the --format parameter. If you've used Ansible you immediately understand why's that. For other workflows, including writing custom shell scripts, you can always use raw text output and standard tools like awk and grep.

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!

alex.preyer

Thanks again, Nicholas, for your help. With your suggestions, I'll find a way to change the settings.

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!