1

Crontab weird behavior on CentOS 5.5

view story
linux-howto

http://www.linuxquestions.org – Hello there ! This is my crontab: Code: 0,30 * * * * /etc/init.d/mc backup 0 4 * * * find /var/spool/clientmqueue -ctime 1 -exec rm -rf {} \; 10 4 * * * find /backup/minecraft.backup -ctime 1 -exec rm -f {} \; 20 4 * * * cd /backup/minecraft.backup/ && ls -lt * | head -1 | awk '{print "cp " $9 " /backup/minecraft.backup/daily/"$9}' | sh # Explanations: Line 1 - backup script for game server Line 2 - empty useless files on OS Line 3 - deleting backups older than a day from /backup/minecraft.backup Line 4 - copying to another folder the newest file from /backup/ (HowTos)