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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...