The use of crontab in Linux is almost vital, however many users know nothing of how it works, or what it is used for. Crontab is basically a scheduler which is used to run scripts at intervals. Possibilities of usage are
a) logrotation
b) backups
c) time synchronization
Crontab can he extremely handy, if you know how to use it ;-) Each line consisting of 6 fields separated by spaces.
Fields:
00,15,30,45 00-23/1 * * mon,tue,wed,thu,fri /root/backup_script
* an asterisk that matches all possible values,
* a single integer that matches that exact value,
* a list of integers separated by commas (no spaces) used to match any one of the values
* two integers separated by a dash (a range) used to match any value within the range.
To edit your own crontab:
crontab -e
You can also import a crontab file (written exactly in the same form):
crontab ^^^^