Check, Install and Modify Crontabs

Check Crontab

crontab -l

Install/Modify

1. crontab -e to edit the cronjob on the backup server.
2. Type i.
3. paste in cron as required.
4. press ‘Esc’.
5. type :wq! then press ‘Enter’ to save and quit.

For example, the following cronjob would run 5AM every morning.

0 5 * * * /usr/home/username/backup.sh

Author: Christopher Smith

I managed websites.

Leave a Reply

Your email address will not be published. Required fields are marked *