YEAR="`/bin/date +\"%Y\"`"
MON="`/bin/date +\"%b\"`"
DAY="`/bin/date +\"%a\"`"
TODAY="`/bin/date +\"%F\"`"
                CLASSES="$CLASSES,$HOSTNAME,$YEAR,$MON,$DAY,$TODAY"
/usr/sbin/fai --class="$CLASSES" softupdate


So what that will do is to add to your list of classes the hostname, year, month, day, and date. If you want a script to run on Monday, you can call it Mon and fai softupdate will run it on Monday. Even Cooler, you can name a file Mon for fcopy and it will be fcopied on Monday and then restored the next day.

Get what I'm saying? Suppose you have cron job to run fai softupdates every day with a default class named DAILY. In your fai files directory, you have /etc/crontab/DAILY so that file is fcopied every day. You can create a version called /etc/crontab/Mon and on Monday, instead of copying DAILY, it will copy Mon instead. The next day, it will copy DAILY back again.

Antwort per Email an