I\'m using Ubuntu on the server and I\'m using Putty to access. I want to create cronjobs for my php site. How can I do this?
I'm asssuming you want to backup your PHP site? Edit the crontab using:
crontab -e
This will start up an instance of vi in which you can edit the crontab, press i for insert mode. You then need to put in the information for when the cron entry will run and the command to run at that time, e.g.:
30 10 * * * tar -zcvf ./myphpsite.tar.gz /var/www/phpsite
So the command above will tar gzip your phpsite in /var/www/phpsite at 10:30pm every day. Exit and quit vi with :wq
See this for further reference:
http://www.adminschoice.com/docs/crontab.htm