Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!pasteur!dog.ee.lbl.gov!mobius.msri.org!david From: david@mobius.msri.org (David Mostardi) Newsgroups: comp.unix.admin Subject: precedence in crontabs Message-ID: <10481@dog.ee.lbl.gov> Date: 1 Mar 91 20:37:07 GMT Reply-To: david@mobius.msri.org (David Mostardi) Organization: Mathematical Sciences Research Institute, Berkeley Lines: 24 X-Local-Date: Fri, 1 Mar 91 12:37:07 PST This is my backup strategy (fairly standard): level 9, Tues-Fri level 5, Sat level 0, 1st of the Month The problem: one can't specify both "first of the month" and "day of the week" in one crontab line. So, I would need to do it in two lines. What are the precedence rules? For example, if I say this: 0 4 1 * * /usr/etc/rdump 0ubcdsf ... 0 4 * * 6 /usr/etc/rdump 5ubcdsf ... 0 4 * * 2,3,4,5 /usr/etc/rdump 9ubcdsf ... and the 1st of the month is a Wednesday, does the level 0 backup or the level 9 backup occur? Thanks, David -- ****************************************************************** David Mostardi "Where the coffee is strong, Systems Administrator the cat is good-looking, MSRI, Berkeley CA and all the theorems are above-average."