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 -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]

Reply via email to