Support

Akeeba Backup for Joomla!

#42039 restoring an old j3 site to j5

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
3.4
PHP version
5.3
Akeeba Backup version
4.7.7

Latest post by nicholas on Thursday, 26 June 2025 01:04 CDT

HDcms

Hello

I succeeded in restoring the nmh-j3.4php5.3 version
The person gave me 2 files
the first without the media which is 3 jpa for a total of 4.5go
the zipped media.zip file which is also 4.5go
I had a problem with the media.zip file which after restoration broke the site!
Here's what I did
restore the site back and front-end
rename the media directory => mediaEx then move elsewhere
dezip media directory => backoffice and navigation problem

The restored site works fine without unzipping the media.zip file with images.
Any idea how to find the difference? or if it's a problem? as part of a migration test?

Regards

nicholas
Akeeba Staff
Manager

Extract the backup archive and proceed with the restoration.

Rename the media folder the media.bak

Unzip the ZIP file into the media folder as you did before

Copy the files from media.bak into media.

The reason is that the media folder contains the Joomla-version-specific JavaScript, not just user-provided media files. You can't use an older or newer version's media files.

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!

HDcms

Hello
Thank you it worked well :-)
I don't know if it's faster to go through a zip but it might be better to make 2 different akeeba profiles:
a small one with the site minus the media
a bigger one just with the media

Regards

HDcms

re

For a site hosted on a shared server (which I have to live with), what values would you recommend to reduce the backup time for a site that is several GB in size?
At the moment, it crashes after an hour!

The host tells me that it's possible to add these directives to the .htacces file of the site that has the heavy backup plugin, which will allow you to allocate more generous values than are possible in the N0C graphical interface. He also recommends setting good values for the following parameters
php_value memory_limit XXG
php_value post_max_size XXG
php_value upload_max_filesize XXG
php_value max_input_time XXX
php_value max_execution_time XXX

in the php environment, I set
memory_limit, post_max_size and upload_max_filesize =1g

regards

nicholas
Akeeba Staff
Manager

None of that will help. The backup does not run in a single page load. It splits the work in multiple page loads, each one running for a few seconds (see the documentation about the minimum and maximum execution time options in the Configuration page). Moreover, we already unset PHP's timeout, and set an ample memory size.

The configuration values for the post size, the upload max filesize and the max input time your host gave you are completely irrelevant. They have nothing to do with the backup. They just gave you a canned reply without bothering to understand the issue.

Are you taking the backup from the backend of the site? The problem would be that your device goes to sleep, your network connection is disrupted, or your browser put what it considers an inactive tab to sleep. The solution would be to disable device sleep, and have the browser tab running the backup run in the foreground.

Are you taking the backup using a CRON job? The problem would be the host's CPU usage limit (ulimit -t). They can change that; it's something that requires root privileges on the server.

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!

HDcms

HI again

Thank you for these clarifications; to the host's credit, he doesn't know everything you do to enable backups (or restorations) of large directories of site files.
I operate from my firefox at home from the backoffice; I understand that I have to disable standby (which I didn't see) and leave the tab in the foreground (which I wasn't doing because I was browsing elsewhere). So there's not much I can do and wait 1 hour if I have to?

For the 1st question, please answer me too :
I don't know if it's faster to go through a zip but it might be better to make 2 different akeeba profiles:
1/ a small one with the site minus the media
2/ a bigger one just with the media

Regards

nicholas
Akeeba Staff
Manager

So there's not much I can do and wait 1 hour if I have to?

Knowing the browser you are using makes answering this so much easier. The feature in Firefox is confusingly called "Tab Unloading", even though what it does is simply disable JavaScript timers i.e. tab sleep. I guess words have lost all meaning now. The linked article describes how you can disable tab unloading . If you disable tab unloading you don't have to wait for the backup to finish. Disabling tab unloading is a good idea, unless you make a habit of leaving dozens of tabs open in the background (a bad idea for so many reasons, including security and privacy).

Alternatively, you can set up the backup to run through a CRON job, scheduled task, or third party application/service. Since these methods do not go through the browser they are not affected by the tab unloading / tab sleep features.

I don't know if it's faster to go through a zip but it might be better to make 2 different akeeba profiles:

I would personally go with two backup profiles, not because it's faster, but because it's easier to manage. 

If you are going for sheer speed, using ZIP is always faster. ZIP is an archiver using native code, it can use as much RAM as you give it, and does not have to perform any of the checks Akeeba Backup does to decide what goes into the archive.

Do consider, though, that putting stuff in a ZIP file is just the beginning of it. You need to keep track of how they correlate with the main site backup, you need to remove older copies you no longer need, you need to upload the backups to off-site storage… Akeeba Backup handles all of that for you. If you go your own way for the media folder you'd have to reimplement all of that which is very expensive and very error-prone. But you are already paying for Akeeba Backup which solves these exact problems, so why not use it? And that's why I would personally go with two backup profiles.

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!

HDcms

Hello

Thank you for this precise information.

I will do that. It's true that I have several firefox profiles with dozens of tabs. I will think about the cron but if not, last question, for in general, is it better that I use Brave? or open a firefox profile with only the backup tab?

Regards

nicholas
Akeeba Staff
Manager

I mean, the ideal solution would be having any browser set up with tab sleep disabled just for running backups. I can't recommend a specific browser (unless you want some obscure Linux-only browser you've never heard of and can't use). All mainstream browsers have tab sleep enabled by default. It's up to you to choose whichever browser you trust, and disable tab sleep.

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!

HDcms

Hi

I think there's a deeper problem.
I run the backup and I get the message that I have a space problem. Maybe it's because akeeba is trying to save to the 2nd jpa that exists.
I deleted the old backup but I have the same problem.
I'm attaching the log file if it's clearer for you? and an image because I find that the 2 files don't have the same rights!

Regards

 

nicholas
Akeeba Staff
Manager

Set a smaller part size for split archives, e.g. 500 MiB. Set up a post-processing engine to upload the files to remote storage, and make sure to check the checkbox to upload the files immediately. This means that your backup requires about 2 to 2.5 times the part size for split archives in free space.

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!

HDcms

I'm sorry but I don't seem to have these settings on this old akeeba 4.7.7 version that I'm obliged to use to start this migration/update to php 5.3.

Regards

 

System Task
system
The ticket information has been edited by herve D (HDcms).

nicholas
Akeeba Staff
Manager

You have installed the Core version, not the Professional version, that's why.

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!

HDcms

Hi

In fact I had asked them to take out a pro license but I didn't check a few months later that they had taken out the core version. I ask them to buy a license.

In the meantime, I'm sorry again but as it can take more than an hour and ... I prefer to fine-tune the settings with you, especially as
a) I'm a planete hoster, I'm used to NOC storage, but on more recent versions, I'm obliged to set
"Bucket access" = path access legacy and I don't see it in the settings for akeeba version 4.7.7?
b) I didn't see the 500 MB limit setting?
c) if you see other parameters to correct, can you tell me by circling the parameter on the image or by telling me the category?

thanks in advance

nicholas
Akeeba Staff
Manager

Kindly note that you are asking me about a version of our software which is six major versions behind and has been end of life (EOL) for nine years. There's a limit to what I can help you with, and I think we've sailed right past it at this point.

My best guess reading the code from a decade ago is that our S3 integration always used path-style access. This might or might not be accurate. I honestly don't know for sure anymore.

The part size for split archives is definitely there, and it has luckily not changed how it works ever since it was added sometime between 2007 and 2008. There's an Archive Engine row with a Configure button next to it. Press it to find this configuration option. It might have a slightly different name, but it definitely has the words "part size" in it.

The option to upload the files as soon as they're created is definitely there in that version.

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!

HDcms

HI

If I'd known, I wouldn't have agreed to migrate this old site to joomla 5.
I'm used to joomla5 sites, j!4 or j!3.

Another thing that's causing this to fail is that I uploaded an old profile where I had media exclusions as shown in the image. That doesn't seem to be the case anymore :-(

I'm confused and if I understand correctly I have to redo this too!?

It's the same site, so if I remember correctly (rarely done) I need to uncheck the images column and the media/k2 subdirectory as seen in https://www.akeeba.com/documentation/akeeba-backup-joomla/exclude-data-from-backup.html. Ok?

nicholas
Akeeba Staff
Manager

K2… That's a name I haven't heard in a long time. But yes, I believe K2 had a folder in its media subdirectory where it stored cached files that you may have to remove. No idea why you had remove the images folder. Maybe because it was a really big folder and you were running out of space?

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!

HDcms

Hi again

Yes, it's horrible. A redesign project that started 2 years ago!
I had a problem configuring the exclusions.  I've now got back to the fact that you first have to go into the profile and then out of it before configuring them in the extensions tab. It was a bit complicated for me.

a) Now I see that I've been stuck for 30 minutes on the backup of /home/XXX/nmh-j3.4php5.3/media/k2/items/cache
Can I exclude it from my backup of media files?

b) is there a way to view the file directory tree of a jpa backup to see if anything is missing?

regards

HDcms

a)

Here is the size occupied on the site
10G /home/XXXXX/nmh-j3.4php5.3/
4.3G /home/XXXXX/nmh-j3.4php5.3/images
5.3G /home/XXXXX/nmh-j3.4php5.3/media
4.8G /home/XXXXX/nmh-j3.4php5.3/media/k2
2.2G /home/XXXXX/nmh-j3.4php5.3/media/k2/items/cache

After nearly 2 days of finding the right akeeba settings, I'd like to ask you if it would be possible to zip
4.3G /home/XXXXX/nmh-j3.4php5.3/images
4.8G /home/XXXXX/nmh-j3.4php5.3/media/k2 (excluding 2.2G /home/XXXXX/nmh-j3.4php5.3/media/k2/items/cache)?

And make a single profile excluding these 2 very large directories?

 

nicholas
Akeeba Staff
Manager

a) Now I see that I've been stuck for 30 minutes on the backup of /home/XXX/nmh-j3.4php5.3/media/k2/items/cache

Yes. You had already asked me, and I confirmed it.

b) is there a way to view the file directory tree of a jpa backup to see if anything is missing?

If you are handy with the command line, you can run Kickstart in the command line with the --dry-run option to list the files.

You can also look at the log file. It will tell you exactly what is being skipped, and what is being included.

And make a single profile excluding these 2 very large directories?

I mean, sure? You already know how to use the file exclusion filters. Why are you asking me if you should use the file exclusion filter feature you are already using anyway…?

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!