Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jul 2014 16:18:11 +0200
From:      Mathieu Arnold <mat@mat.cc>
To:        sbruno@freebsd.org, pkg@FreeBSD.org
Subject:   Re: deleting poudriere logs
Message-ID:  <57EAC600B1C56AB16B64C7FF@ogg.in.absolight.net>
In-Reply-To: <1404319579.1059.38.camel@bruno>
References:  <1404319579.1059.38.camel@bruno>

next in thread | previous in thread | raw e-mail | index | archive | help

+--On 2 juillet 2014 09:46:19 -0700 Sean Bruno <sbruno@ignoranthack.me>
wrote:
| I'm using nginx+poudriere logs to monitor builds.  I'd like to nuke old
| logs and such, but I'm not sure what the graceful way to do this.  I see
| a .data.json file in /usr/local/poudirere/data/logs/bulk along with the
| dirs for my previous builds.
| 
| 
| drwxr-xr-x      3 root  wheel      4 Jun 22 18:33 ..
| drwxr-xr-x      5 root  wheel      7 Jun 24 15:04 11arm32-default
| drwxr-xr-x     30 root  wheel     32 Jul  1 14:26 11mips32-default
| drwxr-xr-x     11 root  wheel     13 Jul  1 19:52 11mips64-default
| drwxr-xr-x  11543 root  wheel  11543 Jul  2 13:33 latest-per-pkg
| drwxr-xr-x     12 root  wheel     14 Jul  2 16:45 11armv632-default
| -rw-r--r--      1 root  wheel   1689 Jul  2 16:45 .data.json
| drwxr-xr-x      7 root  wheel      8 Jul  2 16:45 .
| 
| 
| I'd like to purge old logs, but I have a job running now.  Is there a
| better/betterest way of claning things other than rm -rf?

I have this in my crontab:

@daily /usr/bin/find -s /poudriere/data/logs/ /poudriere/data/wrkdirs/
-ctime +30d -delete

-- 
Mathieu Arnold



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57EAC600B1C56AB16B64C7FF>