From: Dennis Gilmore <[email protected]>

keep data in the work for 2 weeks
keep scratch builds 2 weeks
keep koschei builds for 1 day

Signed-off-by: Dennis Gilmore <[email protected]>
---
 roles/koji_hub/files/koji-directory-cleanup | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/roles/koji_hub/files/koji-directory-cleanup 
b/roles/koji_hub/files/koji-directory-cleanup
index 67a3018..4429235 100644
--- a/roles/koji_hub/files/koji-directory-cleanup
+++ b/roles/koji_hub/files/koji-directory-cleanup
@@ -1,2 +1,3 @@
-0 8 * * * apache find /mnt/koji/work    -xdev -depth -mindepth 2 -mtime +28 \( 
-type f -o -type l \) -delete -o -type d -empty -delete
-0 9 * * * apache find /mnt/koji/scratch -xdev -depth             -mtime +21 \( 
-type f -o -type l \) -delete -o -type d -empty -delete
+0 8 * * * apache find /mnt/koji/work    -xdev -depth -mindepth 2 -mtime +14 \( 
-type f -o -type l \) -delete -o -type d -empty -delete
+0 9 * * * apache find /mnt/koji/scratch -xdev -depth             -mtime +14 \( 
-type f -o -type l \) -delete -o -type d -empty -delete
+0 9 * * * apache find /mnt/koji/scratch/koschei -xdev -depth     -mtime +1  \( 
-type f -o -type l \) -delete -o -type d -empty -delete
-- 
1.8.3.1
_______________________________________________
infrastructure mailing list
[email protected]
http://lists.fedoraproject.org/admin/[email protected]

Reply via email to