From owner-freebsd-pkg@FreeBSD.ORG Thu Jul 3 14:18:19 2014 Return-Path: Delivered-To: pkg@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C7635172; Thu, 3 Jul 2014 14:18:19 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 805422DBC; Thu, 3 Jul 2014 14:18:19 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id B71A3BDC66; Thu, 3 Jul 2014 16:18:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=mat.cc; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=plouf; bh=CkkceKxLJSF TaGyDcnSI1rGAgrk=; b=S5qWfFDekasnreK8z2fqPIsbRwSiGYbn+q6y4/LU4R1 iXIzWst0yGlH3fn9TnPk8JvWXwr3JjXC3jg/gG6M9evS2SdvrRcIIW4j6Or3wTyB nzoGixXPWttm2y76erXMcTVAPIYvZIOMq/wV2SEN77KGRz95WwK6nj2772NeIti4 = Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified)) by prod2.absolight.net (Postfix) with ESMTPSA id 841EABDC56; Thu, 3 Jul 2014 16:18:16 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) by gw.in.absolight.net (Postfix) with ESMTP id 3A3ED6137; Thu, 3 Jul 2014 16:18:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ogg.in.absolight.net (Postfix) with ESMTP id 6C6B0707B467; Thu, 3 Jul 2014 16:18:12 +0200 (CEST) Date: Thu, 03 Jul 2014 16:18:11 +0200 From: Mathieu Arnold 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> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 14:18:19 -0000 +--On 2 juillet 2014 09:46:19 -0700 Sean Bruno 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