Support

Akeeba Backup for Joomla!

#41654 Delete archive after processing

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
5.2.4
PHP version
8.3
Akeeba Backup version
10.0.2

Latest post by on Friday, 28 March 2025 15:17 CDT

beelicomm

hi, on my site, i have on Akeeba Backup Profile: Upload to Remote FTP server

This works so far. But the backup files also remain on the web server. Even though I have enabled the "Delete archive after processing" option.
The backups clog up my web server in a short time.

When I upload to Dropbox I don't have this problem.

Any idea?

thank you

regards, Markus

beelicomm

Files

nicholas
Akeeba Staff
Manager

The code which removes the files after being uploaded is only in one place; it's not something we add in each post-processing engine. As long as all of your files have been successfully and fully uploaded, the originals are removed from your web server.

What you are saying here tells me that the files probably didn't make it to the FTP server. Remember that FTP does not allow for splitting uploads into multiple chunks, therefore this may be relevant: 

Most failed uploads are caused by timeouts. PHP and your web server have time limits, i.e. the maximum time a PHP script may process data before the web server aborts it. Uploading the backup archives to cloud storage takes time, the exact amount of which depends on the size of the file and the network speed. If that time is over either time limit your backup will fail. The time limit and the bandwidth are beyond our control. The only thing you can control is the size. Many post-processing engines support chunked uploading (breaking up the uploads in smaller bits and having the remote server piece together the file) and you can change their chunk size. A chunk size of 5 or 10 MB works best in most cases. For those post-processing engines which don't have an option for chunked uploads you will have to change the Part size for split archives in the Archiver Engine options. Again, a value of 5 or 10 MB works best in most cases. This setting will split our backup archive into multiple files (same base filename, the extensions are .j01, .j02, ..., .jpa; or .j01, .j02, ..., .jps; or .z01, .z02, ..., .zip;), the maximum size of each one being the value of this setting. To restore these backups just place ALL of these files in the same directory and choose the main .jpa, .jps or .zip file: the other parts are discovered and extracted automatically.

I don't have your log file, but what I suspect happens is that part of the backup archive gets uploaded before you hit a timeout. Since the backup is complete it appears as OK (completed) in the Manage Backups page, but since the archive did not get fully uploaded to the FTP server you don't get the only full copy of it which is on your web server removed either. Changing the part size to a lower setting would help with that. Depending on the web server and FTP server I have seen sites which need something as low as 5MB and sites which can go as high as 250MB for the part size. I have yet to see a site which can go all the way up to 2GB or more, unless both servers are on the same local Gigabit or better network and there's no other traffic restricting the throughput.

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!

beelicomm

OK, I see the problem. After I made the split archives smaller, it seems to work now.

Many thanks Nicholas!

 

Regards, Markus

nicholas
Akeeba Staff
Manager

You're welcome!

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!

System Task
system

This ticket has been automatically closed.

All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!