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
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.
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."
Guest orb123 Posted June 12, 2013 Posted June 12, 2013 Could you please tell me how to fix it? Thanks in advance.
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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now