I have done this before; however, some times you need a re-fresher. I started with Localhost version. My Local Environment is Windows 7 running WAMP.
I used “Task Scheduler” to be my local Cron service. I start by right-clicking on the Task Scheduler and “run as administrator“.
- Create a task
- On the General tab give the job a name so you can identify the task. I checked to “Run whether user is logged on or not“. Do not check “hidden“.
- On the Triggers tab click “new“, and set the time you want this to run. I checked to “Stop task” if it is taking longer than an hour.
- In the Actions tab click “new”, and for the Action select “start a program“. Browse to your WAMP and locate the PHP.exe. For the arguments add the full path to your sites “cli” folder. Mine is “C:\wamp\www\mywebsite\cli\akeeba-backup.php”
- The next tabs Conditions and Settings are self explanatory.
Live Site
- Shared hosting with Godaddy
- Joomla 3.8.6 site
- Akeeba 5.5 pro
I needed to get my path to my PHP.exe with the Godaddy shared hosting and the configuration wizard totally figured this out.
/home/mycpanelusername/public_html/cli/akeeba-backup.php
For the PHP path I used
/home/mycpanelusername/php
The path I used for the PHP was no good. I found the next article on Godaddy’s site.
https://www.godaddy.com/help/create-cron-jobs-16086
/usr/local/bin/php -q /home/[user name]/[path to the file]
https://uk.godaddy.com/help/what-is-a-cron-job-3483
I used the following video from Akeeba to get it right.
My Final path was:
/usr/local/bin/php /home/myaccount/public_html/cli/akeeba-backup.php
When I ran the configuration I was given the correct path to the Akeeba-backup.php file.
In the CPanel hosting I went to “cron job”, and created a job.
I hope this helps someone else out there.