Guest orb123 Posted June 8, 2013 Posted June 8, 2013 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. 1 Quote
Ice IT Support Posted June 8, 2013 Posted June 8, 2013 Try php -q /backup2/backup.zip /home/username Replacing username with your cPanel username. Quote
Guest orb123 Posted June 9, 2013 Posted June 9, 2013 Hi, thanks for your reply. I tried the above but I still recieve the same error "No input file specified." Quote
Guest orb123 Posted June 12, 2013 Posted June 12, 2013 Could you please tell me how to fix it? Thanks in advance. Quote
Ice IT Support Posted June 13, 2013 Posted June 13, 2013 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. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.