Support

Akeeba Backup for Joomla!

#12160 Automatic backup of several profiles

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 on Wednesday, 27 June 2012 18:00 CDT

biopgoo
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? yes (bakcup and altbackup)
Joomla! version: 1.5.25
PHP version: 5.3
MySQL version: (unknown) 5.1
Host: (optional, but it helps us help you)
Akeeba Backup version: Latest

Description of my issue:

On some of our accounts we have up to four profiles, each of them storing the backup in a different cloud storage provider.

Currently I am setting up the backups with cpanel cron jobs calling backup.php. I find this tiring, especially calling --profile=1 to --profile=4 so I was wondering if something like --profile=all was available.

What happened to the forums?

Love

nicholas
Akeeba Staff
Manager
Multi-profile backup is a bad idea for several reasons, most of which have to do with performance, memory usage and host limitations. A --profile=all switch also has a major catastrophic potential. It would be like giving away guns for free, even to children. Bad idea.

Regarding the forum, I ripped it off. I was using NinjaBoard and it has shown no signs of moving forward since last June. Besides, I stopped doing free support since July 2011, for reasons I've already published. That's why I had to create a new, custom ticket system.

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!

biopgoo
Thank you Nicholas.

I have seen joomla components that provide scheduling possibilities similar to crontab execution. Would that be a bad idea? They looked promising and in addition they seem to be free components

If I can avoid logging in to the Website's Cpanel manager, I would prefer it.

Love

nicholas
Akeeba Staff
Manager
Very bad idea. These solutions get triggered with page loads.

Backing up an entire site (database AND files) of any size is a very resource intensive process which lasts a hell of a lot of time. If we were to try backing up your site in a single page load, we would be bound by the following technical limitations:
- PHP timeouts. Hosts don't allow scripts to run forever. They put a time cap. Going beyond that cap causes a blank page or a 500 error to appear on your site.
- Memory limits. Your host doesn't allow scripts to use infinite amounts of a very finite and expensive resource that RAM is. Trying to use more than a few Megabytes at a time causes memory outage errors.
- CPU usage timeouts. Your hosts, in order to ensure that you don't bring down his server, will enforce CPU usage limits. If you use more CPU, they will kill the script. If you do that all the time they will simply block your hosting account.
There are also a few more (much more technical) considerations, but it suffices to say that for these reasons taking a full site backup in a single page load is impossible. Therefore we have to split the process in multiple page loads. Keep that in mind.

Now, computers are not humans. They need a trigger to launch programs. The trigger in web hosts can be either a CRON job or a page load. You are beefed about CRON jobs. OK then. Let's assume you want to use page loads. A full site backup takes anywhere between 30 seconds to 10 hours. Would you expect your site visitor who had the misfortune to come to your site at the time the backup should fire to wait forever for the site to load? Of course not.

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!

biopgoo

biopgoo
I have found a Joomla 2.5 extension that allows automatic backups. It is called JPrCron and I am pleased with it. It is triggered by front end activity.

What is so nice about it is that it allows executing so called SSH Commands which are really commands passed through the PHP exec command.

After lots of struggle with the component I found it capable of forking.

The command I executed to make backups work was

/usr/bin/php /home/user/public_html/administrator/components/com_akeeba/backup.php &



Note the ending ampersand & No timeout problems and Akeeba completed thanks to having forked the backup command. I might have observed that the page load that triggered execution was blocked several minutes, but I am a firm admirer of BOFH (Bastard operator from hell), so I do not mind.

Love

nicholas
Akeeba Staff
Manager
There is a hidden danger: if the backup doesn't complete before the next pageload, the extension will run the backup command line again. You don't want to know what happens in that case. It's one of the reasons why I had created the Lazy Scheduling plugin, but it had so many issues I just had to stop supporting it. You know what? webcron.org is just fine for scheduling backups. Daily backups would cost you $2 per site per year. That's, like, half a cup of coffee in a year? I think anyone can afford that – plus it's tested by yours truly and it's rock solid stable :)

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!