Support

Akeeba Backup for Joomla!

#26370 CRON

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 Sunday, 27 November 2016 17:17 CST

johnm
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: Not sure how to set up the cron job, I tried a bunch of stuff, just not my forte. Here is what Bluehosts recommends?

THE ISSUE:
Cron <chefjami@box341> /usr/bin/GET http://chefjamie.com/cli/akeeba-backup.php --profile=1
Unknown option: profile
Usage: GET [-options] <url>...
-m <method> use method for the request (default is 'GET')
-f make request even if GET believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-C <username>:<password>
provide credentials for basic authentication

-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways

-v Show program version
-h Print this message

Search on bluehost revealed this:

Command to run a PHP5 cron job:
php /home/username/public_html/cron.php

Optional flags are sometimes required for a PHP cron job:
php -q /home/username/public_html/cron.php

Command to use a specific php.ini file:
php -c /home/username/public_html/php.ini /home/username/public_html/myscript.php

Command to GET a remote file:
/usr/bin/GET http://www.example.com/file.php

dlb
You are almost, but not quite, there. Let's try:
php http://chefjamie.com/cli/akeeba-backup.php --profile=1
The tricky part is that the "php" part of the command needs to call PHP-CLI, not PHP-CGI/FCGI. The first is the command line version of PHP, the second is the version that runs under a web server. They are different, with different configurations, etc. That part of the command varies from one host to another and I really can't guess what it should be. We frequently have to use a path in front of it like the path they gave you for GET. Let's see if it works and go from there.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

dlb
I'm sorry, that won't work, the second part of the command is wrong.

On your Akeeba Backup Control Panel, open the Scheduling Information button and it will give you the proper path for the second part. You are doing a command line backup. It would be a path, not a URL.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

johnm
I am also noticing something that is very weird. If I am looking on my CPanel admin of the site, in the root of Public_html akeeba is trying to back up folders that are not there. For instance two archive folders that are old website archives that no longer reside in my root. This is causing a fail because they both have folders names media which I have excluded from the files and folders exclusion. But still it wants to try?

Very frustrating as I paid for this software and still have yet to get a back up done. I have attached two pics of the home directory, notice there are not archive folders int eh root of my site. Also see the third snapshot of Akeeba trying to download these archives

dlb
Please look inside the public_html folder for the archive folder in question. Your screen shot is for /home3/chefjaml.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

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!