Support

Akeeba Backup for Joomla!

#42527 I need to have some ZIP files in Web's root folder. But Akeeba Backup shows message about "Detected leftover files" and orders to delete them

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.4.1
PHP version
8.3.4
Akeeba Backup version
10.2.0

Latest post by gebro on Thursday, 11 December 2025 14:00 CST

gebro

Hi,

I need to have some ZIP files in the root folder. Since update to version 10.2.0 I get error message "Backup restoration leftovers detected". When clicking on the link "> Detected leftover files and / or folders" I get a list of my ZIP files, which have nothing to do with Akeeba or Joomla, but which are just some ZIP files with software, which customers may download, e.g. file "Wintest1.zip". For customers it must be possible to download this software directly with link "https://www.druck-temperatur.de/WinTest1.zip".

Akeeba Backup insists in stating this error message or "Delete leftover files and/or folders".

Any solution?

Regards
Gerd Broglie - AGENTUR BROGLIE (for our project "customer DRUCK & TEMPERATUR Leitenberger GmbH, Germany")

 

nicholas
Akeeba Staff
Manager

Please read https://www.akeeba.com/documentation/akeeba-backup-joomla/securing-pre-and-post-restoration.html#removing-leftovers 

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!

gebro

Hi Nicholas,

thank you for this quick answer. But this does not solve my problem, as the ZIP files must be available by direkt link, example written in my original question.

If I move the customer's ZIP files into any folder, e.g. named "files", my customer would have to announce this to thousands of customers, that the download link has changed.

Any other possibility to solve this? Do you know any way how I can move the customer's ZIP files to a sub-folder while keeping the original download path? For example by editing the .htaccess file?

Rgds. Gerd

nicholas
Akeeba Staff
Manager

Download URLs don't necessarily have to be limited by where the files are stored, or how they are actually called. URLs are pointers. It's in their name: Uniform Resource Locator. Joomla provides you with tools to handle URL redirects. Apache (and Litespeed) have done the same for even longer than Joomla's been around.

Let's say your site is example.com and you move the ZIP files to the files directory. You have several options.

Option 1. Joomla's Redirects feature.

Enable the System - Redirect plugin.

Go to System, Manage, Redirects and click on Add Link.

In the Expired URL enter the old URL without your site's URL. For example, if the old URL was https://www.example.com/foobar.zip you need to enter foobar.zip here.

In the New URL enter the URL path where you moved the file to. In this example, that would be /files/foobar.zip.

You need to do that for all files you have moved.

Option 2. Per-file .htaccess code.

You can add the following code to your .htaccess file:

RewriteRule ^foobar\.zip$ /files/foobar.zip [L]

You need to do that for all files you have moved.

Please note that this code should appear before Joomla's SEF URL code.

Option 3. Wildcard .htaccess code.

You can add the following code to your .htaccess file:

RewriteRule ^(.*)\.zip$ /files/$1.zip [L]

Please note that this code should appear before Joomla's SEF URL code.

Which one should you use?

If you only have a few ZIP files you want to move, most people should use Option 1. It's easier to manage.

If you prefer configuration files over a point and click interface, Option 2 is for you.

If you had a large number of ZIP files in your site's root –a generally very bad idea– you should use Option 3 instead.

Ideally, you should move away from this practice for future files. Get into the habit of placing your downloads into the files directory provided by Joomla for this exact use. Redirections make sense for historical URLs you can't retroactively change, but not really for new URLs going forward. 

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!

gebro

Nicholas, thank you so much for your comprehensive and helpfull answert.

Best Regards, Gerd.

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!