Re: skype logs - home läuft zu
On Fri, Aug 13, 2010 at 17:19:20PM +0200, Andre Bischof wrote:
> -rw-rw-r-- 1 frisco users 321M 11. Aug 16:21 skype_20100809-1106.trace.txt
> -rw-rw-r-- 1 frisco users 49M 11. Aug 16:21 skype_20100809-1106.log
> ...
>
> /home/user war voll, weil das 3.6G insgesamt waren.
Um einen ähnlich gelagerten Fall kümmert sich bei mir logrotate, das in der
crontab des Benutzers aufgerufen wird, um die Datei .xsession-errors im Zaum zu
halten. Ab 500kB wird die Datei komprimiert und rotiert:
,----[ crontab ]-
| 30 20 * * * /usr/sbin/logrotate -s /dev/null $HOME/.logrotaterc
`----
,----[ .logrotaterc ]-
| /home/user/.xsession-errors {
| rotate 7
| daily
| size=500k
| compress
| copytruncate
| missingok
| notifempty
| }
`----
MfG
Dirk
Reply to: