Skip to main content

Site backup using cron job

Comments

6 comments

  • cPanelMichael
    Hello :) Have you checked with your hosting provider to verify this type of cron job will work on their server? Thank you.
    0
  • fridayshoes
    [quote="cPanelMichael, post: 1580221">Hello :) Have you checked with your hosting provider to verify this type of cron job will work on their server? Thank you.
    Hi, I wasn't aware there were different types of cron jobs, what specifically should I ask them?
    0
  • cPanelMichael
    [quote="fridayshoes, post: 1580302">Hi, I wasn't aware there were different types of cron jobs, what specifically should I ask them?
    I was referring to the ability to use the PHP binary itself. I recommend reporting the issue to them to determine if a different path to PHP should be used, or to see if they can troubleshoot why it's not functioning as expected. Thank you.
    0
  • fridayshoes
    Is there a way I can test it, maybe with a different script?
    0
  • fridayshoes
    [quote="cPanelMichael, post: 1580352">I was referring to the ability to use the PHP binary itself. I recommend reporting the issue to them to determine if a different path to PHP should be used, or to see if they can troubleshoot why it's not functioning as expected. Thank you.
    I asked my host, they said there was no restriction placed on using the php binary and that the path to reach it is /usr/local/bin/php
    0
  • cPanelMichael
    [quote="fridayshoes, post: 1580451">Is there a way I can test it, maybe with a different script?
    Yes, try using a PHP test script that performs a simple function like checking the date or outputs "Hello World" and see if it works as a cron job. Thank you.
    0

Please sign in to leave a comment.