Support

Akeeba Backup for Joomla!

#8989 Akeeba Backup is backing up extremely large files

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 08 August 2011 13:34 CDT

user43885
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting? Yes

Joomla! version: 1.5.22
PHP version: 5.2
MySQL version: (unknown)
Host: HostGator
Akeeba Backup version: 3.3.2
VirtueMart version: 1.1.9

EXTREMELY IMPORTANT: Please attach your Akeeba Backup log file in order for us to help you with any backup or restoration issue.

Description of my issue:
Akeeba Backup is backing up extremely large files. See attached snapshot showing that the original backup file, back in March was just a mere 38MB. Then increased suddenly to 800+MB. Today the backup shot up to a whopping 1.88 Gb! While Virtuemart products have been added over the weeks, it definitely wasn't an amount to increase the backup to such an extend.

nicholas
Akeeba Staff
Manager
You are backing up your backup archives. Please try excluding the backup output directory using Akeeba Backup's files and directories exclusion button.

If you would like me to provide more specific instructions, please ZIP and attach your backup log file to your next post. Thank you in advance!

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!

user43885
Thanks for your quick response. Here's the attached log file.

Edit: Removed log file

nicholas
Akeeba Staff
Manager
Here's a simple trick to find large files in your backup set. Search the log file for "large file". It comes up with this result:
<root>/administrator.zip - size: 1940971418


So, basically, something on your site (not Akeeba Backup) -or yourself- has created a file named administrator.zip in your site's root with a file size of 1940971418 bytes, or 1.80Gb. My educated guess is that you have a CRON job set up on your site which is ZIPping your administrator directory and placing it into that file. Since the default backup output directory is inside the administrator directory, you have an ever expanding backup archive.

Quick example:
- The size of the administrator directory is 5Mb and you install Akeeba Backup.
- You take a 10Mb AB backup archive of your site.
- The CRON job runs and creates a 10 + 5 = 15Mb archive in the site's root.
- You take a new AB backup. Now it's 10Mb + 15Mb = 25Mb.
- The CRON job runs and creates a 25 + 10 + 5 = 35Mb ZIP file.
- You take a new AB backup. Now it's 10Mb + 40Mb = 50Mb.
- The CRON job runs and creates a 50 + 25 + 10 + 5 = 90Mb ZIP file.
and so on and so on... increasing the backup archive exponentially.

Solution:
Step 1. Remove the CRON job which creates that ZIP archive
Step 2. Exclude that ZIP archive, for good measure!
Step 3. Take a new backup and test it. It should restore properly and not have the administrator.zip file in it.
Step 4. Delete the administrator.zip archive from your site's root
Step 5. Delete your old (bloated) backups
Step 6. Never, ever, create such a CRON job unless you are perfectly sure that you want to bloat your backup archives for no good reason ;)

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!

user43885
Yes, that did it and is now outputting backups of a manageable 74MB. Thanks. But how do I avoid such issues in the future with CRON? I am not even aware of what it is. Is there anywhere I can check if and where that would be installed?

nicholas
Akeeba Staff
Manager
CRON is a system-level service to run tasks on a schedule. You can ask your host to help you with reviewing your scheduled (CRON) jobs. If you had someone perform server-level work for you, you can also ask them as they were probably the ones installing that scheduled job.

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!

user43885
Thanks for the explanation and your assistance.

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!

user43885
Question: Is there any way this post can be removed (for security reasons)? Thanks.

nicholas
Akeeba Staff
Manager
I removed the log file. I'd like to keep the (otherwise anonymous) thread so that future searches can benefit from it.

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!

user43885
Please remove the image file which has been attached earlier, as well. Thanks.

nicholas
Akeeba Staff
Manager
Done!

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!