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