Adjust running koji-split cleanup to 1/week from 1/month

The reposplit cron job runs on the first day of the month and deletes
anything older than 30 days old at that time. However this has caused
a disk crunch on centos stream as each day is 195 GB of data and 60
days of traffic was over 8TB. The cron job is now to run every Sunday
and remove any data older than 14 days.

The same is done for the RHEL splitter as its space was growing also.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
Stephen Smoogen 2022-11-09 11:55:07 -05:00 committed by kevin
parent 09daf9f303
commit 1250b004ea
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +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 '{}' \;
0 0 * * 1 root /usr/bin/find /mnt/fedora/app/fi-repo/centos/stream8-kojitarget -mindepth 1 -maxdepth 1 -type d -mtime +14 -exec rm -rf '{}' \;

View file

@ -1,2 +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 '{}' \;
0 0 * * 0 root /usr/bin/find /mnt/fedora/app/fi-repo/rhel/rhel8/koji/ -mindepth 1 -maxdepth 1 -type d -mtime +14 -exec rm -rf '{}' \;