On Thu, 01 Sep 2005 15:30:18 +0200, Holly Bostick wrote:
> > Gzipping them saves a lot of space, i do it from a cron job
> > $ cat /etc/cron.daily/portagelogs #!/bin/bash
> > for f in $(portageq envvar PORT_LOGDIR)/*.log; do gzip -f $f
> > 2>/dev/null || echo "Failed to gzip $f" done
> Can they not also be rotated with logrotate (I just set logrotate up to
> do this, I think, but since I just did it, and set it for monthy, I
> don't know if it works yet)? But honestly, I don't see why I'd need an
> emerge.log from 6 months ago anyway (or even last month), so is there
> anything wrong with that option? Or have I wasted 2 minutes of time :) ?
These are the individual log files, two per emerge, in PORT_LOGDIR.
Using logrotate on emerge.log would save space, but would affect the use
of genlop --current, which uses this file to estimate emerge times. It's
probably not worth rotating, my desktop has only accumulated 6MB of data
in 15 months, my server has 2.2MB after 33 months. On the other
hand, /var/log/portage on the desktop is 88MB gzipped (almost 1GB
unpacked) and well overdue for a clear out.
Top Oxymorons Number 13: Computer jock