Mailinglist Archive: opensuse-buildservice (256 mails)

< Previous Next >
Re: [opensuse-buildservice] How to clean up /srv/obs/sources?
On Tue, 30 Aug 2011 11:15:46 +0200, Carsten Hoeger <choeger@xxxxxxxxxxxx>

I just noticed that I have ~6GB in repositories (binary and source
but my obs uses ~600GB on disk...

Then I found the culprit. It's the /srv/obs/sources folder:

6.4G repos
521G sources

Okay, now how to get rid of the useless old stuff?
My disk is again filling up... :-(

I use a script called from crontab
In this example I clean /tmp/ files greater than 7 days old.

# cat

echo "remove /tmp/ files older than 7 days after in various locations"
/bin/df -h

# list files then remove
find /tmp/. -mtime +7 -exec ls "{}" \;
find /tmp/. -mtime +7 -exec rm -rf "{}" \;

echo "used after :"
/bin/df -h

Note:your lines would read
find /srv/obs/sources/. -mtime +7 -exec ls "{}" \;
find /srv/obs/sources/. -mtime +7 -exec rm -rf "{}" \;

Cheers Glenn

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups