Support

Akeeba Backup for Joomla!

#13098 Cron task multiple sites

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 Saturday, 01 September 2012 18:00 CDT

inetis
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? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Akeeba Backup version: (unknown)

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue:


Hi,

I want do do a cron task on ~50 websites in a row.
It's impossible to do it with the curl method as the timeout will do it fail. It's impossible to do it with the api because I only use the startBackup method and the backukp stays pending.

Do you have an Idea about why it stays pending ? Is there a command to send to finish the backup ?
Or do you have a better idea ?

Thanks a lot

nicholas
Akeeba Staff
Manager
Hello Piere,

If you use the API you have to use the startBackup method to start a backup, then use the stepBackup to continue on stepping through the backup until the backup is over. See how I do it in the cli/akeeba-backup.php script.

Which brings me to the next point. If all 50 sites are on the same host it suffices to create a shell script like this:
#!/bin/sh
/path/to/php /path/to/site1/cli/akeeba-backup.php
/path/to/php /path/to/site2/cli/akeeba-backup.php
/path/to/php /path/to/site3/cli/akeeba-backup.php
 # and so on and on and on and on...


Of course you can do similar stuff with the Remote CLI tool or with your own custom code. Then all you have to do is run this script through CRON. Or, even simpler, you can create 50 CRON jobs, one for each site (which is better as you get better control at each site's backup).

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!

inetis
Hello,

Ok, I'll do like I'm doing now, I'll just add the steps.

Thanks for your precious help.

nicholas
Akeeba Staff
Manager
You're welcome, Pierre!

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!