You are not logged in.

#1 2010-10-20 19:08:59

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Check my crontab syntax, please

#Full Backup - 01:15 on the first Sunday of Jan, Mar, May, July, Sept, Nov
15 01 1 1,3,5,7,9,11 0 /home/pyther/bin/backup.sh full

#Incremental Backups - 01:15 Tue and Friday
15 01 * * 2,5 /home/pyther/bin/backup.sh inc

#Backup SQL Database every other day - 01:00 every other day
00 01 */2 * * /usr/bin/mysqldump --password=allanbrokeit --all-databases | bzip2 -c > /srv/sql_backups/backup-`date -I`.sql.bz2

Well as the topic states, can someone check my cron syntax? The comments in the cron should state the desired behavior.

Thanks

EDIT:

man crontab wrote:

# run at 11 am on the first and last Mon, Tue, Wed of each month
             0 11 1,5 * mon-wed date

I attempted to adapt that syntax hoping that specifying the months won't break it.

Last edited by pyther (2010-10-20 19:14:05)


Website - Blog - arch-home
Arch User since March 2005

Offline

#2 2010-10-20 19:28:23

scarletxfi
Member
From: Australia
Registered: 2010-04-19
Posts: 105

Re: Check my crontab syntax, please

looks ok to me.. although it is 5 in the morning..
for more info : http://en.wikipedia.org/wiki/Cron

Offline

Board footer

Powered by FluxBB