Support

Akeeba Backup for Joomla!

#14683 Cannot Create Command Line Backup

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 Friday, 15 February 2013 18:00 CST

opwdecks

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?)? Command Line Docs
Joomla! version: 2.5.6
PHP version: 5.2.17
MySQL version: (unknown)
Host: HostGATOR
Akeeba Backup version: 3.6.12

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:

I am having issues with my Command Line backups (tried both options for CLI) as they continue to fail. I can create backups with no issues in the backend of Joomla.

I contacted hostgator and made sure I have the right path for the cron job:

/usr/bin/php-cli /home/opwstain/public_html/cli/akeeba-backup.php

The cron job seems to executes but the backup fails. When reading the log it seems that I have a permission issue or not enough disk space? Permissions seem okay (755) and it does not make any sense as to why I would not have enough disk space as it runs fine in the backend of joomla and I have unlimted space for this account on my own server that is utlizing only 40% of available disk space.

Thanks for the help!

nicholas
Akeeba Staff
Manager

I suspect several issues here:

  • I see that you are using PHP 5.2.17. Ask your host if they have a PHP CLI binary in the 5.3.x version range. You will then need to replace /usr/bin/php-cli with that binary's location in the beginning of your command line. This is unlikely ot be the cause of your issue, but be warned that the next version of Akeeba Backup, as we have been warning since July 2012, will require PHP 5.3.
  • It is possible that your backup output directory is owned by the Apache user whereas your CLI backup script runs under your account's user. This will cause a permissions issue. Even though the web server can write to that directory (which is why a back-end backup works) the CLI script, running under a different user, can't write to that directory. Try giving your output directory (public_html/administrator/components/com_akeeba/backup) –but not its contained files– 0777 permissions. Remove all .php and .log files from that directory and retry the CLI backup. If that works, permissions were your issue.

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!