Jump to content

Cron Job Not Working.


Guest orb123

Recommended Posts

Guest orb123

Hello,

I can't get my cron job working.

I'm trying to backup my website.

 

It's proberally something simple.

 

I'm using php -q /backup2/backup.zip

 

I get an email saying no input file specified.

 

Thanks for your help.

  • Like 1
Link to comment
Share on other sites

Oops! I must have been half asleep when I wrote that! The php command runs a PHP script in the terminal. So to create a zip backup of your site, we have to write a PHP script to do so, and then use

php -q /home/username/path/to/your/script.php

As the cron command. There are plenty of examples when googling how to zip a directory with PHP.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...