Hello.
Iam using a php Script for automatic Backups and call it with a cronjob.
This is the script:
<?php
exec("/usr/bin/php81 /www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php akeeba:backup:take --profile=1", $out, $result);
echo "Returncode: " .$result ."<br>";
echo "Ausgabe des Scripts: " ."<br>";
echo "<pre>"; print_r($out);
?>
Iam getting this error message:
Returncode: 255
Ausgabe des Scripts:
Array
(
[0] => RuntimeException {#713
[1] => #message: "Could not parse the requested URI http:///www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php"
[2] => #code: 0
[3] => #file: "./libraries/vendor/joomla/uri/src/AbstractUri.php"
[4] => #line: 373
[5] => trace: {
[6] => ./libraries/vendor/joomla/uri/src/AbstractUri.php:373 { …}
[7] => ./libraries/src/Uri/Uri.php:309 {
[8] => Joomla\CMS\Uri\Uri->parse($uri)
[9] => › {
[10] => › \treturn parent::parse($uri);
[11] => › }
[12] => arguments: {
[13] => $uri: "http:///www/htdocs/w00a59d2/emtec-electronic.de/web/cli/joomla.php"
[14] => }
[15] => }
[16] => ./libraries/vendor/joomla/uri/src/AbstractUri.php:111 { …}
[17] => ./libraries/src/Uri/Uri.php:121 { …}
[18] => ./libraries/src/Uri/Uri.php:142 { …}
[19] => ./plugins/system/magic360/magic360.php:30 { …}
[20] => ./libraries/src/Extension/ExtensionManagerTrait.php:219 { …}
[21] => ./libraries/src/Extension/ExtensionManagerTrait.php:160 { …}
[22] => ./libraries/src/Extension/ExtensionManagerTrait.php:94 { …}
[23] => ./libraries/src/Plugin/PluginHelper.php:236 { …}
[24] => ./libraries/src/Plugin/PluginHelper.php:194 { …}
[25] => ./libraries/src/Application/ConsoleApplication.php:231 { …}
[26] => ./cli/joomla.php:78 { …}
[27] => }
[28] => }
)
I can see, that the path for uri is wrong. I do not know how to fix this.
I used this script before with Joomla 3.6 and Akeeba Backup 8.1.9 successfully.
Can you please tell me, how I can start the automatic CLI Backup with a php Script?
Best
Rene