From 1250b004eae00f8475387c165e779e0d686cbc0f Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Wed, 9 Nov 2022 11:55:07 -0500 Subject: [PATCH] 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 --- roles/grobisplitter/files/cents8-split.cron | 2 +- roles/grobisplitter/files/rhel8-split.cron | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/grobisplitter/files/cents8-split.cron b/roles/grobisplitter/files/cents8-split.cron index 669791d37c..fe48207603 100644 --- a/roles/grobisplitter/files/cents8-split.cron +++ b/roles/grobisplitter/files/cents8-split.cron @@ -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 '{}' \; diff --git a/roles/grobisplitter/files/rhel8-split.cron b/roles/grobisplitter/files/rhel8-split.cron index d0d1afbfe9..4f2538f7eb 100644 --- a/roles/grobisplitter/files/rhel8-split.cron +++ b/roles/grobisplitter/files/rhel8-split.cron @@ -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 '{}' \;