deleting poudriere logs

Mathieu Arnold mat at mat.cc
Thu Jul 3 14:18:19 UTC 2014


+--On 2 juillet 2014 09:46:19 -0700 Sean Bruno <sbruno at 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


More information about the freebsd-pkg mailing list