clean up koschei logs after 7 days and the rpms after 1 day

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
This commit is contained in:
Dennis Gilmore 2017-01-17 16:32:56 +00:00
parent 954753b765
commit 985943319a

View file

@ -1,3 +1,4 @@
0 8 * * * apache find /mnt/koji/work -xdev -depth -mindepth 2 -mtime +14 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null
0 9 * * * apache find /mnt/koji/scratch -xdev -depth -mtime +14 \( -type f -o -type l -o -not -path "./koschei" \) -delete -o -type d -empty -delete >& /dev/null
0 15 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +1 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null
0 15 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +7 \( -type f -o -type l \) -delete -o -type d -empty -delete >& /dev/null
0 45 * * * apache find /mnt/koji/scratch/koschei -xdev -depth -mtime +1 -name "*.rpm" -delete >& /dev/null