Okay, so I'm quite sick of these "full disk on linode01" issues.
So, I propose the following solution:
- A maintainer of jenkins publish-rpms-nightly disable the copy of several versions of the each RPM (preferably only the latest, do we really need more, its a nightly build afterall)
- A maintainer of jenkins publish-rpms-nightly TRY to make a link to the files instead of copying them.
- Until this is done, we can clear some disk (3 GB+) by doing something like the following:
# cd /var/www/html/releases/nightly
# for yfile in $(for xfile in $(for file in $(find . -type f -name "*.rpm") ; do echo $file | cut -d"." -f 1-2 ; done | sort -u) ; do ls ${xfile}* | sort -n | head -n-2 ; done) ; do echo rm $yfile ; done
This will effectively remove every RPM except the last two revisions of each package. (Well, obviously you need to remove that very last "echo" in the line, just putting it there not to ruins someones afternoon).
- What I propose other then this is just putting the backups somewhere else.
We should have sufficient space for this on another host.
If not, give ma thumbs up and I'll host the backups somewhere else for us until we've gotten it in order.
Any thoughts?