Support

Akeeba Backup for Joomla!

#9187 Script to update akeeba backup automatically

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 user42944 on Thursday, 08 December 2011 04:14 CST

user7157
Hi I am using Pro and is running it on 10+ sites.
I find it a tedious task to log on to all my sites and upgrade the component so I wondered if there was a script I could run on each site, that ran automatically every day, that simply kicked off a upgrade process on each site locally.

I can't use Remote CLI since I am running MACOS otherwise that would be a solution.

Thx in advance

nicholas
Akeeba Staff
Manager
Well, I am developing, testing and using Remote CLI on Mac OS X. What prevents you from doing the same? After all, Mac OS X automatically(!) installs the PHP command line executable for you, without even asking. All you have to do is run Terminal :)

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!

user7157
Well well well ... this is freaking awesome ;) (hard to contain my joy...).
Installed remote.phar in my users root directory on my Mac Book Pro (LION) and ran remoteCLI with no hickups at all - just updated 12 sites in less than 4 minutes ;).
Now I will build a script and schedule it to run on a weekly basis. Cool!!

Thank you so much!

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!

user42944
Can you give a description for the rest of us on how to do this??

When the lazy backup stopped my joy in Akeeba is put on hold and it's a real pain for me to work with cronjobs and so.

I would really like the lazy backup to come back i think it is irreplaceable. I now thinks the backup is only half the program i bought :(

user42944
ADD://

Iv'e seen and have tried you users guide
https://www.akeebabackup.com/documentation/akeeba-backup-documentation/automating-your-backup

but its a step to far for me.
I need something simple.

Thats why i bought akeeba backup, so could use the lazy backup.
I just found out that it did't work.

I find webcron.org not a solution cause it's costs money and a get another registration and i don't want this.

nicholas
Akeeba Staff
Manager
If you want a plugin which slows down your site and creates hidden IFrames (killing your search engine ranking), has the possibility to deplete your disk space (taking down your site), is not reliable and requires quality hosting to operate, then yes, I can revive the Lazy Scheduling plugin. But I'm not in the business of creating dysfunctional software which I know that can't be fixed – especially since I can't fix it because of server-side restrictions (ranging from file permissions, to CPU usage quotas, to unrealistic database timeouts). That's why it was discontinued and I did explain all of those reasons almost a year ago in the release announcement of the then-current version.

I understand that the other ways, which require some basic skills regarding setting up CRON jobs, are not very friendly for anyone who isn't willing to spend one or two hours learning a new and useful site administration skill. To this end, I have provided you with step-by-step instructions of using webcron.org to automate your backups as an easy-to-use, viable alternative. The instructions are in our documentation which we urge you to read before using the software. Look for "Using webcron.org to automate your backups". Scheduling a full year of daily backups costs about 1$. And, please note, that this is an OPTIONAL way to schedule your backups. You can always learn how to set up CRON jobs. We do have step-by-step instructions in our documentation (check our User's Guide or our Walkthroughs section for instructions regarding CPanel). And we do have this forum where we can help you setting up a CRON job. So, claiming that the backup is half the programme you bought because you don't want to read or ask for help is a bit unfair to me and the lengths I have gone to to give you alternatives, document everything and help you.

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!

chrisvaughan
I think Akeeba Backup is great and was sad when Lazy backup vanished. I just purchased the Pro version as the download page implies it contains this plugin but I cannot find it
Chris

nicholas
Akeeba Staff
Manager
At which point does the download imply that the Lazy Scheduling plugin is included? Because last time I checked I had removed all references to that plugin from every product description page.

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!

user42944
The reason I use Joomla and akeeba is that i don't understand it's workings.

Thats why i use it.

When it's stripped out then i'm disappointed cause thats why i bought your software.

I think a lot of people did.

guess i have to look for another solution my self :(



nicholas
Akeeba Staff
Manager
If that's such a huge problem to you people, I can update the Lazy Scheduling plugin to work with Akeeba Backup 3.3.5 or later and release it again. But you will have to use it at your own risk. Let me reiterate the known problems you will suffer by installing this plugin and which can't be fixed:

1 - Running a backup is a resource intensive task which has to run within a limited amount of time so as not to have consistency issues with your files and database contents. The plugin can not do that, because a Joomla! plugin is ONLY called when a human being is accessing your site with a browser. Therefore you MAY have consistency issue, so you must ALWAYS test your backups.

2 - The backup needs to run a rather large number of steps to complete. These steps run only when someone is visiting your site. It is possible that your site has less visitor traffic than what is required to perform a complete backup within, let's say, a single day. This will most likely to you scheduling one backup every day and getting only one backup every 2-3 days. This is a known issue.

3 - For the same reasons, the duration of the backup performed by the Lazy Scheduling plugin will be off the charts. Usually, it will be something like 4-6 hours, when a backend backup lasts only 45 seconds. This is not a bug, it's a consequence of relying to an unreliable source of automation (traffic) for a critical task (backup)

4 - Visiting the Akeeba Backup Control Panel page in the back-end will kill any in-progress backup. This may cause a new backup to be started on the next page load (front- or back-end). Again, this is not a bug, it's how it's supposed to work.

5 - You can not use multiple backup profiles with different scheduling periods. YOu can only use one backup profile, with one scheduling period.

6 - If a Lazy Scheduling backup is in progress and you try to take a new backup with the same profile using any other means (e.g. back-end backup), the results are unspecified. Most likely both backups will be broken or they will never end, eating up the entirety of your free disk space and causing the inability to access your site or even the suspension of your hosting account.

7 - Since we do not want your page load time to be 10 seconds or more, we will have to use a hidden IFrame to run the backup while the user is viewing your site. This means that they will see the page load spinner in Internet Explorer, Opera, Firefox, Safari and Chrome continuously spinning while they are visiting your site, probably confusing them into thinking that your site loads forever and losing some visitors. Search engines will also see that behaviour and penalise your site for having an unearthly page loading time, losing you more visitors.

8 - If your cache or backup output directory is not writable, you might end up filling up your database with pending or failed backup records. If only the cache directory is unwritable, you may end up with multiple backups taken one after the other, depleting your free disk space.

9 - If the visitor abandons the page while the backup is running, some servers will cause the backup archive to be corrupt. Unfortuantely, this can not be tested beforehand, therefore you have to test your backups to make sure you are not bitten by this issue.

10 - If your visitor has turned off Javascript on her browser, the backup won't run

11 - There is a small window, up to 500msec, where two successive visits might break the backup. It is the time window between when the plugin checks if another visitor has caused the backup to start/step and starting/stepping the backup. This will lead to broken backups, therefore you have to check all your backups to make sure they can be restored.

12 - If the backup fails for any reason, e.g. you run out of disk space, the results are unspecified. Typically, multiple backups will be attempted until you disable the plugin or your database space runs out and your site stops working.

If despite these known issue you insist that using the Lazy Scheduling plugin is better than using a reliable CRON job, all right, I will revive the plugin. But because of those 12 reasons I am not going to support it if it causes a broken backup, kills your site's search engine ranking or ends up in eating up all your space and lead to suspension of your hosting account. As you see, these reasons can not be worked around, unless you replace the plugin with CRON jobs (which is what I did, only to receive your complaints).

Fair enough?

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!

user42944
I had no problems with it on all my sites so i will use it when it's available.

Thanks :D

nicholas
Akeeba Staff
Manager
OK, fair enough. Please check the download page for Akeeba Backup in 12 hours. I will publish it there as a separate download you can install on your sites.

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!

user42944
Thanks you made my day :D

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!