Support

Akeeba Backup for Joomla!

#20577 multibackup

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 tampe125 on Wednesday, 23 July 2014 08:45 CDT

user84859
hi at all,

i use akeeba not for one but for more backup

in the guide present in the ufficial site i have found this code:


<?php
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site.com/index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;
?>


----

good.

i have created i file bk.php and when i start it from url: www.site.com/bk.php, the backup is ok, it follow the configuration of profile1 in backend of joomla.

ah, in the configuration of profile1 i have set the transfert via ftp at a different site.

all is ok, backup ok, transfert ok


this for one site.

the next step is for four site

the same code, the same destination site url, the same password.

the problem is that
the first two bk start
the thirt backup start but don't transfert or don't start
the four bk same situation of thirt or nothing

the file of backup for four site is this;


<?php
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site1.it/index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;

$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site2.it/index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;

$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site3.3/index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;

$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site4./index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;
?>


i have the possibility of scheduling only one file from my provider control panel. then i have create only one file with all code.

i think that the problem is the timeout.

i have think a other type of recall of backup:

the backup file recalled from provider scheduler (ex. bk_siteboss.php), whith only the recall at a external php file:

<?php
include('bk_site1.php');
include('bk_site2.php');
include('bk_site3.php');
include('bk_site4.php');

?>


in the bk_site1.php the first code inserted in this ticket only for first site, in the bk_site2.php the first code inserted in this ticket only for second site.....

but don't start backup...

this idea of divide the backup is for execute the single backup at the same time without problem of time out....

errors, ideas, suggests?

very thanks

memphis

tampe125
Akeeba Staff
Salve Massimiliano,

a quanto ho capito sta utilizzando un singolo file per eseguire il backup su più siti.
Questa pratica è altamente sconsigliata, perchè quasi sicuramente andrà ad incorrere in timeout.

La soluzione migliore è quella di utilizzare WebCron.org, anche se il servizio è a pagamento, ha dei prezzi veramente irrisori (0.0001 per esecuzione).

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user84859
grazie mille davide,

per la celere risposta.

andrò sicuramente a vedere come funziona il servizio di webcron.

nel frattempo allego quel che ho fatto e che a quando pare funziona nel caso dovesse servire a qualcun'altro e che con il provider non ha dato problemi.

si tratta di un file che viene richiamato dallo scheduler del provider, io l'ho chiamato bk.php

al suo interno contiene:

</head>
<body>
<iframe src="http://www.abc.it/bk_sito1.php" height="50%" width="49%" ></iframe>
<iframe src="http://www.abc.it/bk_sito2.php" height="50%" width="49%" ></iframe>
<iframe src="http://www.abc.it/bk_sito3.php" height="50%" width="49%" ></iframe>
<iframe src="http://www.abc.it/bk_sito4.php" height="50%" width="49%" ></iframe>

</html>

----------


a questo punto ogni singolo file sitox.php conterrà il codice iniziale:

<?php
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, 'http://www.site.com/index.php?option=com_akeeba&view=backup&key=psw&profile=1');
curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($curl_handle,CURLOPT_MAXREDIRS, 10000);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
echo "Spiacente ma qualcosa non ha funzionato.";
else
echo $buffer;
?>

per ora funziona. vediamo questa notte a mezzanotte che fa in automatico, mail test ha dato esito positivo.

spero che comunque per chi ha solo uno o due siti vada bene e non faccia timeout.

per chi ne dovrà gestire piu di 20.... mah.... mi sa che webcron sia meglio

grazie mille ancora davide


tampe125
Akeeba Staff
Di niente!
Mi faccia sapere se ha ancora bisogno di assistenza.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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!