enupal / backup

Fully integrated Backup solution for Craft CMS
https://enupal.com/craft-plugins/enupal-backup
Other
16 stars 3 forks source link

Cron job not working #21

Closed migswd closed 5 years ago

migswd commented 5 years ago

Description

Hi. I am trying to do the cron job task to backup my website but it does not work. I tested the link and it is working (I activated the cron job config). https://myapp.com/enupal-backup/schedule?key=OLmCV46wS9

I got this line in my anacrontab : 10 3 * wget https://myapp.com/enupal-backup/schedule?key=OLmCV46wS9 -O /dev/null

Where should I look to understand what is wrong ? Is there any log in the plugin ? (I checked but did not see it)

Additional info

PHP version | 7.3.0 Linux 4.9.124-paas-2270098 MySQL 5.7.23 Craft Pro 3.1.22 Enupal Backup 1.2.10

andrelopez commented 5 years ago

Hi @migswd

Could you please test using Curl instead of Wget? e.g

10 3 * * * * curl --request GET 'https://myapp.com/enupal-backup/schedule?key=OLmCV46wS9'

Please let us know how it goes

migswd commented 5 years ago

Hi. I tried it but it not work better. Another idea ? :)

andrelopez commented 5 years ago

Hi @migswd

Some hosting companies don’t allow access to cron, but there are websites offering alternative ways of scheduling jobs (free or paid-for). Here are some examples:

SetCron SetCronJob OnlineCronJobs EasyCron

migswd commented 5 years ago

Hi Andre. It is working now. There was a special syntax to use on my hosting. It works great thank you !!