Re: pruning srpm-builds
For the record - I executed: # cat /tmp/p set -e cd /var/lib/copr/public_html/results for i in */*/srpm-builds/; do pushd "$i" >/dev/null echo "Purging $PWD" find ./ -mtime +14 -type f| xargs --no-run-if-empty rm cd .. find srpm-builds/ -empty -type d |xargs --no-run-if-empty rmdir popd >/dev/null done Free disk space went up from 225G to 909G . Miroslav ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org
Re: pruning srpm-builds
On Friday, March 8, 2019 10:21:06 AM CET Miroslav Suchý wrote: > Dne 08. 03. 19 v 9:21 Pavel Raiskup napsal(a): > > Will the limit for command-line lenght suffice (execve)? :-) > > It worked for 'du' - yes, it will be sufficient. In the 'rm -rf' is one star sign more... > It is broken for build from October. Hmm. I can only limit the deletion to > build older than few weeks. +1, sounds good. It can live in cron I guess.. Pavel ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org
Re: pruning srpm-builds
Dne 08. 03. 19 v 9:21 Pavel Raiskup napsal(a): > > Will the limit for command-line lenght suffice (execve)? :-) It worked for 'du' - yes, it will be sufficient. >> The only cons I see is that links from build page to builder-live.log >> will be broken. ... hmm, they are already broken - likely some other >> bug. So I see no cons :) > This is actually not truth, at least not for builds I tried. Worth > submitting a bug report... It is broken for build from October. Hmm. I can only limit the deletion to build older than few weeks. Miroslav ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org
Re: pruning srpm-builds
On Friday, March 8, 2019 12:47:29 AM CET Miroslav Suchý wrote: > I was thinking where to reclaim storage space so we can add Fedora 30 > and I checked the srpm-builds directory, which Dominik mentioned during > last meeting and the total sum is: > > [root@copr-be results][PROD]# du -shc */*/srpm-builds > 697Gtotal Good catch! > and it contains very old build - so current prunerepo definitely skips it. > > Unless you raise your voice by end of week, I will run on Monday: > > rm -rf /var/lib/copr/public_html/results/*/*/srpm-builds/* Will the limit for command-line lenght suffice (execve)? :-) > The only cons I see is that links from build page to builder-live.log > will be broken. ... hmm, they are already broken - likely some other > bug. So I see no cons :) This is actually not truth, at least not for builds I tried. Worth submitting a bug report... Pavel ___ copr-devel mailing list -- copr-devel@lists.fedorahosted.org To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org