Jump to content

Recommended Posts

Guest orb123
Posted

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
Guest orb123
Posted

Hi, thanks for your reply.

 

I tried the above but I still recieve the same error "No input file specified."

Guest orb123
Posted

Could you please tell me how to fix it?

 

Thanks in advance.

Posted

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

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...