#1109 monthly cron job to clean up old koji trees
Merged 3 years ago by kevin. Opened 3 years ago by phsmoura.
fedora-infra/ phsmoura/ansible theer  into  main

@@ -1,1 +1,2 @@ 

  10 10  * * * root /usr/local/bin/cents8-split.sh

+ 0 0 1 * * root /usr/bin/find /mnt/fedora/app/fi-repo/centos/stream8-kojitarget -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf '{}' \;

@@ -1,1 +1,2 @@ 

  10 09  * * * root /usr/local/bin/rhel8-split.sh

+ 0 0 1 * * root /usr/bin/find /mnt/fedora/app/fi-repo/rhel/rhel8/koji/ -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf '{}' \;

Build succeeded.

rebased onto dba935315b4dc498d0ae99e38ba1815d17b3d103

3 years ago

Build succeeded.

LGTM. I'm glad that you were able to put my suggestion to use :).

Looks OK but we may want to test in staging only first as it is a delete

We don't have a staging batcave01. ;)

We don't have a staging batcave01. ;)

Can you remove the -print from the second one? (Otherwise the cron will mail every night).

Otherwise I think it looks fine and we should merge and push it. :)

rebased onto 56cbbdbde08b48df7af98e6f686bd40702221e7b

3 years ago

Sure, -print removed from the command

Build succeeded.

rebased onto f1f1088

3 years ago

rebased onto f1f1088

3 years ago

Pull-Request has been merged by kevin

3 years ago

Build succeeded.